windowProcPtr = Callback.registerCallback(this);
registerWindowClass(windowClassName, windowProcPtr);
}
public long windowProc(long hwnd, int msg, long wParam, long lParam) {
NativeEventThread thread = (NativeEventThread)Thread.currentThread();
WinWTK wtk = (WinWTK)thread.getWTK();
if (wtk == null || wtk.getWinEventQueue() == null) {
return win32.DefWindowProcW(hwnd, msg, wParam, lParam);
}
return wtk.getWinEventQueue().windowProc(hwnd, msg, wParam, lParam);
}