I found a bit more info on the (X) button in the corner not being a close button. It's a "smart minimize" button.
If you don't like this behavior, one workaround would be to remove it with the hidden(?) window style 0x10000.
A nicer(?) work-around is to create your window with an OK button: CreateWindowEx(WS_EX_CAPTIONOKBTN,...
Then make the OK button close your window:
The only confusing thing is that the button says OK. (Would this work on Windows CE 2.0 by the way? Does it show WS_EX_CAPTIONOKBTN OK buttons?)
Currently I'm having some trouble with the gx.dll (x86) which came with the dev kit. After loading to the emulator, all functions seem to return NULL. So I'm currently looking for a x86 gx.dll which works.
If you don't like this behavior, one workaround would be to remove it with the hidden(?) window style 0x10000.
A nicer(?) work-around is to create your window with an OK button: CreateWindowEx(WS_EX_CAPTIONOKBTN,...
Then make the OK button close your window:
- Code:
case WM_COMMAND:
// If Ok is pressed, close the window
if (LOWORD(wParam)==IDOK) SendMessage(hWnd,WM_CLOSE,0,0);
return 0;
The only confusing thing is that the button says OK. (Would this work on Windows CE 2.0 by the way? Does it show WS_EX_CAPTIONOKBTN OK buttons?)
Currently I'm having some trouble with the gx.dll (x86) which came with the dev kit. After loading to the emulator, all functions seem to return NULL. So I'm currently looking for a x86 gx.dll which works.