Click here to Skip to main content
15,917,062 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: About MessageBoxEX Pin
Ryan Binns8-Jul-03 19:21
Ryan Binns8-Jul-03 19:21 
GeneralRe: About MessageBoxEX Pin
Ryan Binns8-Jul-03 19:24
Ryan Binns8-Jul-03 19:24 
GeneralRe: About MessageBoxEX Pin
FlyingDancer8-Jul-03 19:35
FlyingDancer8-Jul-03 19:35 
GeneralRe: About MessageBoxEX Pin
Ryan Binns8-Jul-03 19:42
Ryan Binns8-Jul-03 19:42 
GeneralRe: About MessageBoxEX Pin
FlyingDancer8-Jul-03 20:05
FlyingDancer8-Jul-03 20:05 
GeneralRe: About MessageBoxEX Pin
Ryan Binns8-Jul-03 20:10
Ryan Binns8-Jul-03 20:10 
GeneralRe: About MessageBoxEX Pin
FlyingDancer8-Jul-03 20:27
FlyingDancer8-Jul-03 20:27 
GeneralRe: About MessageBoxEX Pin
Toni788-Jul-03 20:40
Toni788-Jul-03 20:40 
Aleon666 wrote:
"hwndYesButton" is an undeclared identifier in my project.

Of course that would not exist in your project.
That's the handle of the "Yes" button in your dialog, or maybe the "OK" button. You have to define in and then the value can be obtained by calling GetDlgItem( HWND hDlg, int nIDDlgItem ) or the CWnd::GetDlgItem( UINT nID ). Then you should call the function that Ryan told you earlier:
PostMessage(WM_COMMAND, MAKEWPARAM(BN_CLICKED, IDYES), (LPARAM)hwndYesButton);


// Afterall, I realized that even my comment lines have bugs

When one cannot invent, one must at least improve (in bed).-My latest fortune cookie
GeneralRe: About MessageBoxEX Pin
Ryan Binns8-Jul-03 20:44
Ryan Binns8-Jul-03 20:44 
GeneralRe: About MessageBoxEX Pin
Toni788-Jul-03 20:54
Toni788-Jul-03 20:54 
GeneralRe: About MessageBoxEX Pin
Ryan Binns8-Jul-03 20:56
Ryan Binns8-Jul-03 20:56 
GeneralRe: About MessageBoxEX Pin
Toni788-Jul-03 21:08
Toni788-Jul-03 21:08 
GeneralRe: About MessageBoxEX Pin
Toni788-Jul-03 20:31
Toni788-Jul-03 20:31 
GeneralRe: About MessageBoxEX Pin
Ryan Binns8-Jul-03 20:45
Ryan Binns8-Jul-03 20:45 
GeneralRe: About MessageBoxEX Pin
Toni788-Jul-03 20:51
Toni788-Jul-03 20:51 
GeneralRe: About MessageBoxEX Pin
Ryan Binns8-Jul-03 20:55
Ryan Binns8-Jul-03 20:55 
GeneralRe: About MessageBoxEX Pin
Toni788-Jul-03 21:09
Toni788-Jul-03 21:09 
GeneralRe: About MessageBoxEX Pin
FlyingDancer8-Jul-03 22:25
FlyingDancer8-Jul-03 22:25 
Generalhmbvn Pin
Anonymous8-Jul-03 19:11
Anonymous8-Jul-03 19:11 
GeneralRe: hmbvn Pin
Michael Dunn8-Jul-03 20:19
sitebuilderMichael Dunn8-Jul-03 20:19 
GeneralRe: hmbvn Pin
Ryan Binns8-Jul-03 20:31
Ryan Binns8-Jul-03 20:31 
GeneralRe: hmbvn Pin
RChin8-Jul-03 23:10
RChin8-Jul-03 23:10 
GeneralAbout MFC Context-Sensitive Help Pin
chepuri_uk8-Jul-03 19:01
chepuri_uk8-Jul-03 19:01 
Questionwhat is the max that will fit in a char Pin
johnstonsk8-Jul-03 17:31
johnstonsk8-Jul-03 17:31 
AnswerRe: what is the max that will fit in a char Pin
John M. Drescher8-Jul-03 17:38
John M. Drescher8-Jul-03 17: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.