LRESULT CALLBACK NBEWindow::WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { //static func PAINTSTRUCT ps; HDC hdc; //if(s_win!=nullptr) //{ // s_win->procMsg(hWnd,message,wParam,lParam);// custom msg processing //} procMsg(hWnd, message, wParam, lParam); switch (message) { case WM_CREATE: return 0; case WM_SIZE: return 0; case WM_COMMAND: break; case WM_PAINT: hdc = BeginPaint(hWnd, &ps); EndPaint(hWnd, &ps); break; case WM_DESTROY: PostQuitMessage(0); break; default: return DefWindowProc(hWnd, message, wParam, lParam); } return 0; }
void loop() { char *msg; if ((msg = getMsg()) != 0) { procMsg(msg); } procBut(); procClock(); }
static int multi_ezca_pollCb() { MSG m; while ( MYPEEK(&m) ) { #ifdef DEBUG recMsg(pmsg); #endif if ( procMsg(&m) ) { ezcaAbort(); return 1; } } return 0; }