Changeset 41 for trunk/mainwin.cpp
- Timestamp:
- Mar 17, 2018, 11:00:45 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mainwin.cpp
r39 r41 31 31 #endif 32 32 OldFrameWP = WinSubclassWindow (hwndFrame, FrameProcedure); 33 33 #ifndef _QUIET_ 34 34 // attach the icon 35 35 if (HPOINTER hicon = WinLoadPointer (HWND_DESKTOP, GETMODULE, 1)) … … 39 39 if (HACCEL haccel = WinLoadAccelTable (hab, GETMODULE, 1)) 40 40 WinSetAccelTable (hab, haccel, hwndFrame); 41 #endif 41 42 42 43 // add extensions to system menu 43 static MENUITEM MenuAbout = { MIT_END, MIS_TEXT, 0, WID_PB_ABOUT, 0, 0 };44 /* static MENUITEM MenuAbout = { MIT_END, MIS_TEXT, 0, WID_PB_ABOUT, 0, 0 }; 44 45 static MENUITEM MenuSettings = { MIT_END, MIS_TEXT, 0, WID_PB_SETTINGS, 0, 0 }; 45 46 static MENUITEM MenuGeneralHelp = { MIT_END, MIS_TEXT, 0, HM_GENERAL_HELP, 0, 0 }; … … 49 50 AddSysMenuItem (hwndFrame, &MenuSettings, RSTR(IDS_SETTINGS)); 50 51 AddSysMenuItem (hwndFrame, &MenuGeneralHelp, RSTR(IDS_GENERALHELP)); 51 AddSysMenuItem (hwndFrame, &MenuAbout, RSTR(IDS_PRODUCTINFORMATION)); 52 AddSysMenuItem (hwndFrame, &MenuAbout, RSTR(IDS_PRODUCTINFORMATION));*/ 52 53 53 54 HWND hwnd = WinWindowFromID (hwndFrame, FID_CLIENT); … … 248 249 return MRESULT (FALSE); 249 250 } 251 #ifndef _QUIET_ 250 252 else 251 253 // FIXME pretty yukki to do it this way I guess ... 252 254 WinSendMsg (hwnd, UM_ADJUSTSETTINGS, 0,0); 253 255 #endif 254 256 switch (SHORT1FROMMP (mp1)) 255 257 { … … 281 283 case WID_PB_SETCAPTURETYPE: 282 284 //int capType; 285 if (LONGFROMMP(mp2) == 1) { 286 pset->SetSaveStyle (SAVESTYLE_CLIPBOARD); 287 } 283 288 284 289 switch (pset->QuerySSWCaptureType ()) … … 357 362 case UM_PREPARECAPTURE: 358 363 WinSendMsg (hwndSnapshot, UM_STARTCAPTURE, 0,0); 359 360 364 usState = STATE_WAITFORHIDE; 361 365 … … 367 371 #endif 368 372 } 373 else { 374 SWP swp; 375 CHAR ach[32] = {0}; 376 377 WinQueryClassName (WinQueryFocus(HWND_DESKTOP), sizeof (ach), ach); 378 if (stricmp (ach, "#4") == 0) { 379 WinSendMsg (hwnd, UM_ABORT, 0,0); 380 if (usCap == CAP_WINDOW) 381 WinSendMsg (hwndFrame, WM_COMMAND, 382 MPFROM2SHORT (WID_PB_WINDOW,0), 0); 383 else 384 WinSendMsg (hwndFrame, WM_COMMAND, 385 MPFROM2SHORT (WID_PB_WINDOWINTERIOR,0), 0); 386 return MRESULT (FALSE); 387 } 388 } 369 389 #ifndef _QUIET_ 370 //#if 0 371 if (WinQueryButtonCheckstate (hwnd, WID_CB_HIDEWINDOW)) 390 if (WinQueryButtonCheckstate (hwnd, WID_CB_HIDEWINDOW)) { 372 391 WinShowWindow (WinQueryWindow (hwnd, QW_PARENT), FALSE); 392 } 373 393 else 374 394 #endif 375 Win SendMsg (hwnd, UM_WINDOWHIDDEN, 0,0);395 WinPostMsg (hwnd, UM_WINDOWHIDDEN, 0,0); 376 396 return MRESULT (FALSE); 377 397 … … 444 464 POINTL ptl; 445 465 WinQueryPointerPos (HWND_DESKTOP, &ptl); 446 447 466 HWND hwndCapture = 448 467 WinWindowFromPoint (HWND_DESKTOP, &ptl, FALSE);
Note:
See TracChangeset
for help on using the changeset viewer.