I'm trying to add windows to the main window, you know like list boxes, combo boxes and stuff, but i can't seem to get it to show becauyse i can't get it ontop of the GDK window overlapping the DirectX screen.
here is my code:
// Dark GDK - The Game Creators - www.thegamecreators.com
// the wizard has created a very simple project that uses Dark GDK
// it contains the basic code for a GDK application
// whenever using Dark GDK you must ensure you include the header file
#include "DarkGDK.h"
#include <globStruct.h>
#include "resource.h"
HWND HWNDList;
int CreateList();
LRESULT WinProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
switch(message)
{
case WM_DESTROY:
PostQuitMessage(0);
}
return DefWindowProc(hwnd, message, wParam, lParam);
}
// the main entry point for the application is this function
void DarkGDK ( void )
{
// turn on sync rate and set maximum rate to 60 fps
dbSyncOn ( );
dbSyncRate ( 60 );
// our main loop
while ( LoopGDK ( ) )
{
CreateList();
// update the screen
dbSync ( );
}
// return back to windows
return;
}
int CreateList()
{
HWNDList = CreateWindowA("ListBox","ListBox",LBS_COMBOBOX | WS_CHILD,100,100,50,50,g_pGlob->hWnd,NULL, g_pGlob->hInstance,NULL);
SetWindowLong(HWNDList, GWL_STYLE, GetWindowLong(HWNDList,GWL_STYLE) | WS_CLIPSIBLINGS | WS_CLIPCHILDREN);
ShowWindow(HWNDList, SW_SHOW);
UpdateWindow(HWNDList);
return 1;
}
hopefully you guys can see what's wrong
"Originally I was going to have a BS on it but you know how that would be. I can't walk around with the letters BS on me." More or less a qoute by Syndrome from Jack, Jack, attack