well.. thats the thing i first checked and they are different. What i dont get is that when i click on the third window, it goes to the second window and reports the HWND of the SECOND!
code is below...
Code:
// setup and register window class
wc.style = CS_HREDRAW | CS_VREDRAW;
wc.lpfnWndProc = WindowProcI;
wc.cbClsExtra = 0;
wc.cbWndExtra = 0;
wc.hInstance = hInstance;
wc.hIcon = LoadIcon(hInstance, (char*)IDI_MAIN);
wc.hCursor = LoadCursor(NULL, IDC_ARROW);
wc.hbrBackground = black; //(HBRUSH)(COLOR_BTNFACE + 1);
wc.lpszMenuName = NULL;
wc.lpszClassName = INDCLS;
RegisterClass(&wc);
// create indicator window
HWND hwnd = CreateWindow(INDCLS, TITLE, WS_POPUP, 0, 0,
400, 24, hParent, NULL, hInstance, NULL);
thats the 3rd window
and this is the first and second ones...
Code:
// setup and register window class
wc.style = CS_HREDRAW | CS_VREDRAW;
wc.lpfnWndProc = WindowProcM;
wc.cbClsExtra = 0;
wc.cbWndExtra = 0;
wc.hInstance = hInstance;
wc.hIcon = LoadIcon(hInstance, (char*)IDI_MAIN);
wc.hCursor = LoadCursor(NULL, IDC_ARROW);
wc.hbrBackground = black; //(HBRUSH)(COLOR_BTNFACE + 1);
wc.lpszMenuName = NULL;
wc.lpszClassName = NAME;
RegisterClass(&wc);
// create host window
HWND hmain = CreateWindow(NAME, TITLE, WS_POPUP, 10, 10,
400, 300, NULL, NULL, hInstance, NULL);
// create main window
HWND hwnd = CreateWindow(NAME, TITLE, WS_POPUP, 10, 10,
400, 300, hmain, NULL, hInstance, NULL);
any help would be great.