Click here to Skip to main content
15,892,161 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralEnumerating Domain Controllers Pin
Lhenno Ferrari22-May-03 2:29
Lhenno Ferrari22-May-03 2:29 
QuestionHow to hide a button? Pin
Vassili22-May-03 2:24
Vassili22-May-03 2:24 
AnswerRe: How to hide a button? Pin
David Crow22-May-03 2:33
David Crow22-May-03 2:33 
AnswerRe: How to hide a button? Pin
csc22-May-03 2:35
csc22-May-03 2:35 
GeneralRe: How to hide a button? Pin
Vassili22-May-03 2:52
Vassili22-May-03 2:52 
GeneralRe: How to hide a button? Pin
David Crow22-May-03 3:16
David Crow22-May-03 3:16 
GeneralRe: How to hide a button? Pin
Rage22-May-03 3:19
professionalRage22-May-03 3:19 
GeneralRe: How to hide a button? Pin
csc22-May-03 4:52
csc22-May-03 4:52 
the other question ... the ok and cancel button which are not there but working via keystrokes ...

If you want to do nothing in your dialog, just override the default handlers of these keys :

class CMyDialog::CDialog
{
.
.
virtual void OnOK( ) { /* do nothing*/ };
virtual void OnCancel( ) { /* do nothing*/ };

}


for details look at the msdn descriptions of these cdialog members, for example OnOk :

CDialog::OnOK
virtual void OnOK( );

Remarks

Called when the user clicks the OK button (the button with an ID of IDOK).

Override this member function to perform the OK button action. If the dialog box includes automatic data validation and exchange, the default implementation of this member function validates the dialog-box data and updates the appropriate variables in your application.

If you implement the OK button in a modeless dialog box, you must override the OnOK member function and call DestroyWindow from within it. Don’t call the base-class member function, because it calls EndDialog, which makes the dialog box invisible but does not destroy it.

QuestionHow to Install a Windows XP theme with MFC Pin
jia_wei22-May-03 2:03
jia_wei22-May-03 2:03 
General99999... in item text in Unicode with CTreeView Pin
BadJerry22-May-03 2:02
BadJerry22-May-03 2:02 
GeneralRe: 99999... in item text in Unicode with CTreeView Pin
BadJerry22-May-03 3:11
BadJerry22-May-03 3:11 
QuestionHow dou you drawing a rectangle onto a video source? Pin
Member 40481322-May-03 0:41
Member 40481322-May-03 0:41 
AnswerRe: How dou you drawing a rectangle onto a video source? Pin
Trollslayer22-May-03 1:20
mentorTrollslayer22-May-03 1:20 
GeneralRe: How dou you drawing a rectangle onto a video source? Pin
Member 40481322-May-03 2:08
Member 40481322-May-03 2:08 
GeneralRe: How dou you drawing a rectangle onto a video source? Pin
Trollslayer22-May-03 3:53
mentorTrollslayer22-May-03 3:53 
GeneralOLE-Automation debugging problem. Pin
vcseeker22-May-03 0:20
vcseeker22-May-03 0:20 
GeneralAnybody???? Pin
vcseeker22-May-03 2:04
vcseeker22-May-03 2:04 
GeneralRe: OLE-Automation debugging problem. Pin
AlexO22-May-03 4:17
AlexO22-May-03 4:17 
GeneralRe: OLE-Automation debugging problem. Pin
vcseeker22-May-03 21:48
vcseeker22-May-03 21:48 
GeneralVC6 Add-in for selecting configuration Pin
John Oliver22-May-03 0:12
John Oliver22-May-03 0:12 
GeneralRe: VC6 Add-in for selecting configuration Pin
John Oliver22-May-03 0:21
John Oliver22-May-03 0:21 
GeneralRe: VC6 Add-in for selecting configuration Pin
Pavel Klocek22-May-03 0:32
Pavel Klocek22-May-03 0:32 
GeneralRe: VC6 Add-in for selecting configuration Pin
John Oliver22-May-03 0:34
John Oliver22-May-03 0:34 
GeneralMemory Tracking 2 Pin
The_Server22-May-03 0:05
The_Server22-May-03 0:05 
GeneralRe: Memory Tracking 2 Pin
Neville Franks22-May-03 0:26
Neville Franks22-May-03 0:26 

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.