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

Possibly Related Threads…
Thread Author Replies Views Last Post
  simplistic misunderstanding about ; + "" in a print doppler 12 2,633 09-21-2024, 06:47 PM
Last Post: TDarcos
  How to Disable Windows Finish Setup Notifications. Pete 4 1,250 08-08-2024, 02:43 AM
Last Post: Pete
  Book for sanity/insanity break: "10 PRINT CHR$(205.5+RND(1)); : GOTO 10" CharlieJV 4 1,049 08-22-2023, 08:15 PM
Last Post: bplus
  Print source code from the IDE Kernelpanic 21 3,577 12-17-2022, 06:52 PM
Last Post: TempodiBasic

Forum Jump:


Users browsing this thread: 1 Guest(s)