Changeset 498 for trunk/src/gui/kernel/qwidget_pm.cpp
- Timestamp:
- Feb 1, 2010, 12:24:47 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gui/kernel/qwidget_pm.cpp
r497 r498 71 71 extern PFNWP QtOldFrameProc; 72 72 extern MRESULT EXPENTRY QtFrameProc(HWND, ULONG, MPARAM, MPARAM); 73 extern PFNWP QtOldFrameCtlProcs[FID_HORZSCROLL - FID_SYSMENU + 1]; 74 extern MRESULT EXPENTRY QtFrameCtlProc(HWND, ULONG, MPARAM, MPARAM); 73 75 74 76 #if !defined(QT_NO_SESSIONMANAGER) … … 1161 1163 QtOldFrameProc = oldProc; 1162 1164 1165 // subclass all standard frame controls to get non-client mouse events 1166 // (note: the size of the ctls array must match QtOldFrameCtlProcs) 1167 HWND ctls[FID_HORZSCROLL - FID_SYSMENU + 1]; 1168 if (WinMultWindowFromIDs(fId, ctls, FID_SYSMENU, FID_HORZSCROLL) > 0) { 1169 for (size_t i = 0; i < sizeof(ctls)/sizeof(ctls[0]); ++i) { 1170 if (ctls[i] != NULLHANDLE) { 1171 oldProc = WinSubclassWindow(ctls[i], QtFrameCtlProc); 1172 // remember the old proc only once: it's the same for 1173 // all standard frame control windows. 1174 if (!QtOldFrameCtlProcs[i]) 1175 QtOldFrameCtlProcs[i] = oldProc; 1176 } 1177 } 1178 } 1179 1163 1180 removeSysMenuAccels(fId); 1164 1181
Note:
See TracChangeset
for help on using the changeset viewer.