I'm learning C++. I wonder is any C++ application have HWND
. Example bellow app, with no window created.
If it have, how I can get its HWND? Thank you very much!
#include <windows.h>
int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR szCmdLine, int iCmdShow )
{
MSG msg;
while( GetMessage( &msg, NULL, 0, 0 ) )
{
TranslateMessage( &msg );
DispatchMessage( &msg );
}
}
You need to create one.
check out CreateWindowEx and ShowWindow