/* -------------------------------------------------------------------------- */ int PASCAL WinMain (HANDLE hInstance, HANDLE hPrevInstance, LPSTR lpszCmdLine, int nCmdShow) { MSG msg; HWND hWnd; __hInstance = hInstance; if (hPrevInstance == NULL) if (!RegisterAppWndClass(hInstance)) return(0); hWnd = CreateDialog( hInstance, _szAppName, NULL, NULL); if (hWnd == NULL) return(0); ShowWindow(hWnd, nCmdShow); while (GetMessage(&msg, NULL, 0, 0)) { TranslateMessage(&msg); DispatchMessage(&msg); } #ifdef USE_X_LIB _UnlinkWintab(); #endif return(0); }
BOOL TabletEnd() // Tablet context should remain active until the application is closed. ////////////////////////////////////////////////////////////////////////////// { if( hContext ) { WTClose( hContext ); hContext = NULL; #ifndef WIN32 if( Control.bUnlinkWintab ) _UnlinkWintab(); // free wintab.dll and reset auto-linking // capabilities in Wintabx/Wintab32x.lib #endif } return TRUE; }