for some reason another window isnt showing in my program..hwnd shows but hwnd2 doesnt..
Code:
hwnd = CreateWindowEx(0, szClassName, _T("Test") ,
WS_OVERLAPPED | WS_MINIMIZEBOX | WS_SYSMENU, CW_USEDEFAULT, CW_USEDEFAULT,
425, 350, HWND_DESKTOP, NULL,
hThisInstance, NULL);
this is the main window...also the program is unicode
Code:
hwnd2 = CreateWindow(
szClassName,
_T("test") ,
WS_OVERLAPPED | WS_MINIMIZEBOX | WS_SYSMENU,
CW_USEDEFAULT, CW_USEDEFAULT,
425, 350,
hwnd, NULL,
hThisInstance, NULL);
thats the window im trying to get to show.
Code:
ShowWindow(hwnd , SW_SHOW);
ShowWindow(hwnd2 , SW_SHOW);
UpdateWindow(hwnd);
UpdateWindow(hwnd2);
it seems all perfect but wont show