Click here to Skip to main content
15,908,112 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalstring reversal Pin
liboogie1920-Dec-02 9:36
liboogie1920-Dec-02 9:36 
GeneralRe: string reversal Pin
Nish Nishant20-Dec-02 9:43
sitebuilderNish Nishant20-Dec-02 9:43 
GeneralRe: string reversal Pin
Paul M Watt20-Dec-02 12:16
mentorPaul M Watt20-Dec-02 12:16 
GeneralRe: string reversal Pin
Jason Henderson20-Dec-02 17:29
Jason Henderson20-Dec-02 17:29 
GeneralRe: string reversal Pin
Michael Dunn21-Dec-02 5:36
sitebuilderMichael Dunn21-Dec-02 5:36 
Generalbuttons lose focus Pin
20-Dec-02 8:15
suss20-Dec-02 8:15 
GeneralRe: buttons lose focus Pin
Tim Smith20-Dec-02 8:47
Tim Smith20-Dec-02 8:47 
GeneralRe: buttons lose focus Pin
kvan0720-Dec-02 9:59
kvan0720-Dec-02 9:59 
Your suggestion worked with the following changes.

1) The functions do not take the hDlg parameter.
2) SetFocus() is needed to point the keyboard to the default button.

The revised code follows:

SendDlgItemMessage(<ID of current default pushbutton>, BM_SETSTYLE, BS_PUSHBUTTON, (LONG)TRUE);<br />
      SendMessage(DM_SETDEFID, (<ID of new default pushbutton>, 0L);   <br />
      SendDlgItemMessage(<ID of new default pushbutton>, BM_SETSTYLE, BS_DEFPUSHBUTTON, (LONG)TRUE);<br />
      GetDlgItem(<ID of new default pushbutton>)->SetFocus();

GeneralActiveX for Drag-n-Drop! Pin
Ehsan Baghaki20-Dec-02 8:07
Ehsan Baghaki20-Dec-02 8:07 
Generalsetup and delpoyment question Pin
trustno120-Dec-02 8:04
trustno120-Dec-02 8:04 
GeneralRe: setup and delpoyment question Pin
Mangesh Sardesai20-Dec-02 18:49
Mangesh Sardesai20-Dec-02 18:49 
GeneralBITMAP Drag-n-Drop Opearation! <Realy need help> Pin
Ehsan Baghaki20-Dec-02 8:00
Ehsan Baghaki20-Dec-02 8:00 
GeneralRe: BITMAP Drag-n-Drop Opearation! <Realy need help> Pin
Christian Graus20-Dec-02 9:49
protectorChristian Graus20-Dec-02 9:49 
GeneralRe: BITMAP Drag-n-Drop Opearation! <Realy need help> Pin
Ehsan Baghaki20-Dec-02 10:56
Ehsan Baghaki20-Dec-02 10:56 
QuestionQuestion About UNICODE? Pin
ashxly20-Dec-02 6:51
ashxly20-Dec-02 6:51 
AnswerRe: Question About UNICODE? Pin
AlexO20-Dec-02 7:55
AlexO20-Dec-02 7:55 
GeneralRe: Question About UNICODE? Pin
ashxly21-Dec-02 7:26
ashxly21-Dec-02 7:26 
GeneralAdministrative privileges Pin
Cris20-Dec-02 6:02
Cris20-Dec-02 6:02 
GeneralRe: Administrative privileges Pin
AlexO20-Dec-02 7:59
AlexO20-Dec-02 7:59 
GeneralDisabling buttons with bitmaps Pin
Luis E. Cuadrado20-Dec-02 4:59
Luis E. Cuadrado20-Dec-02 4:59 
GeneralRe: Disabling buttons with bitmaps Pin
Alvaro Mendez20-Dec-02 5:15
Alvaro Mendez20-Dec-02 5:15 
GeneralRe: Disabling buttons with bitmaps Pin
Luis E. Cuadrado20-Dec-02 6:22
Luis E. Cuadrado20-Dec-02 6:22 
GeneralRe: Disabling buttons with bitmaps Pin
Alvaro Mendez20-Dec-02 6:48
Alvaro Mendez20-Dec-02 6:48 
Generalfactorial program Pin
liboogie1920-Dec-02 4:18
liboogie1920-Dec-02 4:18 
GeneralRe: factorial program Pin
carrie20-Dec-02 4:51
carrie20-Dec-02 4:51 

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.