Hello there,
I'm trying to add native Win32 Controls using the API directly. (for example, a win32 button)
I tried this code:
#include "DarkGDK.h"
#include "globstruct.h"
void DarkGDK()
{
dbSyncOn();
dbSyncRate(60);
HWND hButton = CreateWindow("OK", "OK", WS_VISIBLE | WS_CHILD | BS_DEFPUSHBUTTON, 100, 100, 200, 200, g_pGlob->hWnd, NULL, g_pGlob->hInstance, NULL);
while(LoopGDK())
{
dbSync();
}
}
(Sorry, I don't remember the code very well, as I'm not in my computer right now)
And yes, a button appeared ONCE.
Is there way to keep it showing? (By updating it in each frame maybe? IDK..)
Actually, I wanted to embed an MSIE ActiveX control to the window. But I think I must start from something basic.
Any kind of help would be greatly appreciated
if(asleep) sheep++;