]> source.dussan.org Git - tigervnc.git/commitdiff
MinGW tweak: Use sizeof(PROPSHEETHEADER) instead of
authorPeter Åstrand <astrand@cendio.se>
Tue, 9 Dec 2008 10:50:40 +0000 (10:50 +0000)
committerPeter Åstrand <astrand@cendio.se>
Tue, 9 Dec 2008 10:50:40 +0000 (10:50 +0000)
PROPSHEETHEADER_V1_SIZE, since the latter is not available in
MinGW. Raises our requirements of comctl32.dll, but should be no
problem nowadays.

git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3333 3789f03b-4d11-0410-bbf8-ca57d06f2519

win/rfb_win32/Dialog.cxx

index 398334f02c36e677093c530afbe2c3677b91fafa..d07ecd6119a61804f8c4bcb732fb6d7280c53961 100644 (file)
@@ -259,7 +259,7 @@ bool PropSheet::showPropSheet(HWND owner, bool showApply, bool showCtxtHelp, boo
  
     // Initialise and create the PropertySheet itself
     PROPSHEETHEADER header;
-    header.dwSize = PROPSHEETHEADER_V1_SIZE;
+    header.dwSize = sizeof(PROPSHEETHEADER); // Requires comctl32.dll 4.71 or greater, ie IE 4 or later
     header.dwFlags = PSH_MODELESS | (showApply ? 0 : PSH_NOAPPLYNOW) | (showCtxtHelp ? 0 : PSH_USECALLBACK);
     header.pfnCallback = removeCtxtHelp;
     header.hwndParent = owner;