Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Disable Print Screen?
#8
(12-15-2023, 10:36 PM)SMcNeill Wrote:
Code: (Select All)
//////////////////
// When window is activated/deactivated, disable/enable Alt-PrintScreen.
// (IDHOT_SNAPWINDOW)
//
void CMainFrame::OnActivate(UINT nState, CWnd* pWndOther,
   BOOL bMinimized)
{
   CFrameWnd::OnActivate(nState, pWndOther, bMinimized);
   if (nState)
      RegisterHotKey(m_hWnd, IDHOT_SNAPWINDOW, MOD_ALT, VK_SNAPSHOT);
   else
      UnregisterHotKey(m_hWnd, IDHOT_SNAPWINDOW);
}

I think right there is what would be really relevant for you, but read the article itself, also.
Thanks for the info Steve, I'll take a look.
New to QB64pe? Visit the QB64 tutorial to get started.
QB64 Tutorial
Reply


Messages In This Thread
Disable Print Screen? - by TerryRitchie - 12-15-2023, 08:01 PM
RE: Disable Print Screen? - by TerryRitchie - 12-15-2023, 09:11 PM
RE: Disable Print Screen? - by Steffan-68 - 12-15-2023, 10:28 PM
RE: Disable Print Screen? - by TerryRitchie - 12-16-2023, 05:05 AM
RE: Disable Print Screen? - by mnrvovrfc - 12-15-2023, 10:08 PM
RE: Disable Print Screen? - by SMcNeill - 12-15-2023, 10:32 PM
RE: Disable Print Screen? - by SMcNeill - 12-15-2023, 10:36 PM
RE: Disable Print Screen? - by TerryRitchie - 12-16-2023, 05:07 AM
RE: Disable Print Screen? - by SMcNeill - 12-24-2023, 05:53 PM
RE: Disable Print Screen? - by SMcNeill - 12-24-2023, 05:55 PM
RE: Disable Print Screen? - by Kernelpanic - 12-24-2023, 08:06 PM
RE: Disable Print Screen? - by TerryRitchie - 12-24-2023, 10:06 PM
RE: Disable Print Screen? - by SMcNeill - 12-25-2023, 12:13 AM
RE: Disable Print Screen? - by Kernelpanic - 12-25-2023, 07:45 PM



Users browsing this thread: 6 Guest(s)