implement file browser dialog

This commit is contained in:
2017-11-04 14:50:06 +00:00
parent a3276906f9
commit b49414bcd6
14 changed files with 330 additions and 15 deletions

View File

@@ -118,8 +118,14 @@ bool WacomTablet::init(HWND hWnd)
if (LoadWintab())
{
/* check if WinTab available. */
if (gpWTInfoA(0, 0, NULL))
gpWTInfoA(0, 0, 0);
if (UINT ret = gpWTInfoA(WTI_DEFSYSCTX, 0, &glogContext))
{
#ifdef _DEBUG
// this should just avoid errors in debug mode
if (ret != sizeof(LOGCONTEXTA))
return false;
#endif // _DEBUG
g_hCtx = TabletInit(hWnd);
if (!g_hCtx)
{
@@ -147,6 +153,7 @@ bool WacomTablet::init(HWND hWnd)
void WacomTablet::terminate()
{
gpWTClose(g_hCtx);
UnloadWintab();
}