Original Post
It''s probably a small detail I''m overlooking, but I can''t figure out why everytime I run a simple window (well, with this prog at least :/) it makes the CPU time jump up to 99%. Has anybody seen this symptom before? One time it happend because I had the DefWindowProc in the wrong place, but this time I don''t think that''s the case.
THe bottom portion of my WndProc:
----------------------------------
default:
return(DefWindowProc(hwnd, uMsg, wParam, lParam));
}
return 0;
}
My MsgLoop:
---------------------------------
MSG msg;
while(true) {
PeekMessage(&msg, hWnd, NULL, NULL, PM_REMOVE);
if (WM_QUIT == msg.message) {
return msg.wParam;
}
TranslateMessage(&msg);
DispatchMessage(&msg);
}
any thoughts?
thanks in advance,
lackluster