Click here to Skip to main content
15,881,801 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How does the using the address of operator work in Visual C++? Pin
David Crow27-Feb-06 3:37
David Crow27-Feb-06 3:37 
QuestionMessage Box being hidden Pin
braveheartkenya26-Feb-06 2:04
braveheartkenya26-Feb-06 2:04 
AnswerRe: Message Box being hidden Pin
includeh1026-Feb-06 3:21
includeh1026-Feb-06 3:21 
GeneralRe: Message Box being hidden Pin
braveheartkenya26-Feb-06 4:52
braveheartkenya26-Feb-06 4:52 
AnswerRe: Message Box being hidden Pin
FarPointer26-Feb-06 3:37
FarPointer26-Feb-06 3:37 
GeneralRe: Message Box being hidden Pin
braveheartkenya26-Feb-06 4:56
braveheartkenya26-Feb-06 4:56 
GeneralRe: Message Box being hidden Pin
FarPointer26-Feb-06 5:11
FarPointer26-Feb-06 5:11 
GeneralRe: Message Box being hidden Pin
Gary R. Wheeler26-Feb-06 5:31
Gary R. Wheeler26-Feb-06 5:31 
If you are using MFC, you can do the following:
CMyDialog::OnButton()
{
  ::MessageBox(m_hWnd,
               "Your message text goes here",
               "Caption for your message box",
               (MB_OK | MB_ICONINFORMATION));
}
In this case, CMyDialog is the name of your dialog class, derived from CDialog (which is in turn derived from CWnd). One of the members of all CWnd-derived objects is m_hWnd, which is the window handle.


Software Zen: delete this;
GeneralRe: Message Box being hidden Pin
braveheartkenya26-Feb-06 6:05
braveheartkenya26-Feb-06 6:05 
GeneralRe: Message Box being hidden Pin
Ryan Binns26-Feb-06 17:19
Ryan Binns26-Feb-06 17:19 
GeneralRe: Message Box being hidden Pin
braveheartkenya27-Feb-06 7:21
braveheartkenya27-Feb-06 7:21 
GeneralRe: Message Box being hidden Pin
Nibu babu thomas26-Feb-06 18:27
Nibu babu thomas26-Feb-06 18:27 
GeneralRe: Message Box being hidden Pin
braveheartkenya27-Feb-06 7:25
braveheartkenya27-Feb-06 7:25 
QuestionHow to use LB_SETCOUNT message for MFC CListBox class? Pin
oleetron26-Feb-06 2:01
oleetron26-Feb-06 2:01 
AnswerRe: How to use LB_SETCOUNT message for MFC CListBox class? Pin
Ryan Binns26-Feb-06 17:20
Ryan Binns26-Feb-06 17:20 
AnswerRe: How to use LB_SETCOUNT message for MFC CListBox class? Pin
ashesh deep31-Aug-09 2:03
ashesh deep31-Aug-09 2:03 
QuestionProblem about IHTMLDocument2->wirte() , plz ! Pin
Leesen25-Feb-06 21:31
Leesen25-Feb-06 21:31 
AnswerRe: Problem about IHTMLDocument2->wirte() , plz ! Pin
Leesen27-Feb-06 1:53
Leesen27-Feb-06 1:53 
Questionhard ware serial number Pin
ss200625-Feb-06 21:29
ss200625-Feb-06 21:29 
QuestionProgramming the Parallel Port Pin
kmaster25-Feb-06 21:12
kmaster25-Feb-06 21:12 
AnswerRe: Programming the Parallel Port Pin
Cool Ju26-Feb-06 0:53
Cool Ju26-Feb-06 0:53 
GeneralRe: Programming the Parallel Port Pin
normanS26-Feb-06 19:26
normanS26-Feb-06 19:26 
QuestionPrinting colors Pin
includeh1025-Feb-06 20:52
includeh1025-Feb-06 20:52 
Questionhardware monitor Pin
gr8coaster32925-Feb-06 13:45
gr8coaster32925-Feb-06 13:45 
AnswerRe: hardware monitor Pin
Hamid_RT25-Feb-06 17:15
Hamid_RT25-Feb-06 17:15 

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.