Click here to Skip to main content
15,902,445 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: etc. information Pin
Christian Graus12-Jun-01 11:57
protectorChristian Graus12-Jun-01 11:57 
GeneralITOA Pin
12-Jun-01 3:33
suss12-Jun-01 3:33 
GeneralRe: ITOA Pin
Michael P Butler12-Jun-01 3:42
Michael P Butler12-Jun-01 3:42 
GeneralRe: ITOA Pin
Tomasz Sowinski12-Jun-01 4:17
Tomasz Sowinski12-Jun-01 4:17 
GeneralRe: ITOA Pin
12-Jun-01 7:51
suss12-Jun-01 7:51 
Generalie automation/printing in nt service without mfc Pin
sammy calma12-Jun-01 3:03
sammy calma12-Jun-01 3:03 
GeneralLoading a BMP to FullScreen & disabling keys Pin
Adeel Shamsi12-Jun-01 1:06
Adeel Shamsi12-Jun-01 1:06 
GeneralRe: Loading a BMP to FullScreen & disabling keys Pin
Jason Teagle12-Jun-01 4:45
Jason Teagle12-Jun-01 4:45 
>How can I load the images from the resource to the screen in
>fullscreen mode with autoresizing

The only way I know of is to (a) create a window whose client area fits the whole screen. This can be achieved by using

::GetSystemMetrics(SM_CXSCREEN) and
::GetSystemMetrics(SM_CYSCREEN),

and creating a CFrameWnd with no caption bar and non-resizing border.

To get the bitmap to full screen, you need to use StretchBlt() in place of BitBlt().

>in addition I also wanna disable the PRTSCRN & ALT+PRTSCRN keys. How >can I achieve this. I used the WM_KEYDOWN event but it isn't working >for PRTSCRN & ALT+PRTSCRN.

Any <alt> key combination generates WM_SYSKEYDOWN / UP.

WM_KEYDOWN or WM_KEYUP (not necessarily both) SHOULD work for PrintScreen (VK_SNAPSHOT is the key name). But try WM_SYSKEYDOWN / UP also.

>But When I all the buttons from my dialog box WM_KEYDOWN works for >VK_UP & VK_LEFT but not VK_RIGHT

Well, it should work the same for all arrow keys! But in a dialogue, there is some translation on keys to handle moving from control to control, swapping radio buttons in a group, etc. You should look at PreTranslateMessage() (in an MFC app - for a non-MFC app, I guess you need to get to the keypress before IsDialogMessage() is called), which is where the system does that translation. That should solve that bit of your problem.

As for the PrintScreen key, it is possible that it does not generate key messages to apps but instead is handled within the Kernel of Windows - in which case you are probably out of luck.

OK, I'll bite - WHY do you want to disable those keys? I hate it when apps try to disable keys and override the system. The system was designed for a reason, work with it! (You may have a very good reason, of course.)
GeneralRe: Loading a BMP to FullScreen & disabling keys Pin
Adeel Shamsi13-Jun-01 23:44
Adeel Shamsi13-Jun-01 23:44 
GeneralRe: Loading a BMP to FullScreen & disabling keys Pin
Jason Teagle13-Jun-01 23:48
Jason Teagle13-Jun-01 23:48 
Generalvisual c++ 7 Pin
11-Jun-01 23:52
suss11-Jun-01 23:52 
GeneralRe: visual c++ 7 Pin
Michael P Butler12-Jun-01 0:04
Michael P Butler12-Jun-01 0:04 
GeneralRe: visual c++ 7 Pin
Derek Lakin12-Jun-01 0:05
Derek Lakin12-Jun-01 0:05 
GeneralTrackMouseEvent question Pin
11-Jun-01 21:44
suss11-Jun-01 21:44 
General2 Pin
11-Jun-01 21:44
suss11-Jun-01 21:44 
QuestionSetting wide message system hook? Pin
11-Jun-01 21:13
suss11-Jun-01 21:13 
AnswerRe: Setting wide message system hook? Pin
Igor Sukhov12-Jun-01 3:14
Igor Sukhov12-Jun-01 3:14 
AnswerRe: Setting wide message system hook? Pin
Jason Teagle12-Jun-01 4:56
Jason Teagle12-Jun-01 4:56 
GeneralDon't include header files. Pin
hahyojin11-Jun-01 19:17
hahyojin11-Jun-01 19:17 
Generalplease translate ;) Re: Don't include header files. Pin
Igor Sukhov11-Jun-01 23:02
Igor Sukhov11-Jun-01 23:02 
Generalwe all <i><b>love</b></i> an inheritance question! Pin
Nick Blumhardt11-Jun-01 17:37
Nick Blumhardt11-Jun-01 17:37 
GeneralRe: we all <i><b>love</b></i> an inheritance question! Pin
Gerald Schwab11-Jun-01 17:58
Gerald Schwab11-Jun-01 17:58 
GeneralRe: we all <i><b>love</b></i> an inheritance question! Pin
Nick Blumhardt11-Jun-01 19:06
Nick Blumhardt11-Jun-01 19:06 
GeneralRe: we all <i><b>love</b></i> an inheritance question! Pin
Ben Burnett11-Jun-01 19:21
Ben Burnett11-Jun-01 19:21 
GeneralRe: we all <i><b>love</b></i> an inheritance question! Pin
Gert Boddaert11-Jun-01 21:38
Gert Boddaert11-Jun-01 21:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.