Click here to Skip to main content
16,007,687 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralPrinting a window Pin
v_krishnan1-Aug-01 4:31
v_krishnan1-Aug-01 4:31 
GeneralPrinting a window Pin
v_krishnan1-Aug-01 4:28
v_krishnan1-Aug-01 4:28 
GeneralPrinting a window Pin
v_krishnan1-Aug-01 4:26
v_krishnan1-Aug-01 4:26 
General2 quastions... Pin
1-Aug-01 4:05
suss1-Aug-01 4:05 
GeneralRe: 2 quastions... Pin
1-Aug-01 9:14
suss1-Aug-01 9:14 
GeneralRe: 2 quastions... Pin
Not Active1-Aug-01 9:58
mentorNot Active1-Aug-01 9:58 
Generalbut... Pin
1-Aug-01 11:07
suss1-Aug-01 11:07 
GeneralRe: but... Pin
Christian Graus1-Aug-01 13:17
protectorChristian Graus1-Aug-01 13:17 
Yes, but OnOK is still called when you press it. If you deleted the Cancel button, Escape will still call OnCancel. To defeat this behaviour, override the methods before deleting the buttons and comment out the calls to the base class. If you wanted the OK button to work but not the return key you can do this:

GetAsyncKeyState(VK_RETURN); // Clear buffer
if (GetAsyncKeyState(VK_RETURN)) return; // Don't execute if we got here via the return key

For this project, put a new IDOK button on, then override the method, and delete it again.



Christian

#include "std_disclaimer.h"

The careful application of terror is also a form of communication.

Eagles may soar, but weasels don't get sucked into jet engines.
GeneralAVI animations - where to find ?!?! Pin
1-Aug-01 3:04
suss1-Aug-01 3:04 
Generalchange text color in a combobox Pin
1-Aug-01 2:54
suss1-Aug-01 2:54 
GeneralCustomizing Autoexp.dat for STL Pin
Derek Price1-Aug-01 2:39
Derek Price1-Aug-01 2:39 
GeneralResizing a FormView to the size of the dialog displayed Pin
skfnmuislædmufaæoi1-Aug-01 1:25
skfnmuislædmufaæoi1-Aug-01 1:25 
GeneralRe: Resizing a FormView to the size of the dialog displayed Pin
Tomasz Sowinski1-Aug-01 2:38
Tomasz Sowinski1-Aug-01 2:38 
GeneralMicrosoft Visual Studio Pin
1-Aug-01 1:02
suss1-Aug-01 1:02 
GeneralRe: Microsoft Visual Studio Pin
Christian Graus1-Aug-01 13:18
protectorChristian Graus1-Aug-01 13:18 
GeneralRe: Microsoft Visual Studio Pin
Not Active1-Aug-01 17:22
mentorNot Active1-Aug-01 17:22 
GeneralThread Pin
1-Aug-01 1:01
suss1-Aug-01 1:01 
GeneralRe: Thread Pin
Bob Groves1-Aug-01 2:00
Bob Groves1-Aug-01 2:00 
GeneralRe: Thread Pin
22-Jan-02 23:41
suss22-Jan-02 23:41 
GeneralMicrosoft Visual Studio Pin
1-Aug-01 1:00
suss1-Aug-01 1:00 
QuestionHow to add JPG or GIF images into the resource Pin
31-Jul-01 21:22
suss31-Jul-01 21:22 
AnswerRe: How to add JPG or GIF images into the resource Pin
Not Active1-Aug-01 3:03
mentorNot Active1-Aug-01 3:03 
QuestionHow to add JPG or GIF images into the resource Pin
31-Jul-01 21:21
suss31-Jul-01 21:21 
QuestionHow to add JPG or GIF images into the resource Pin
31-Jul-01 21:20
suss31-Jul-01 21:20 
QuestionHow to add JPG or GIF images into the resource Pin
31-Jul-01 21:11
suss31-Jul-01 21:11 

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.