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

C / C++ / MFC

 
QuestionRe: How to hide column in list control Pin
David Crow20-Jul-07 3:28
David Crow20-Jul-07 3:28 
AnswerRe: How to hide column in list control Pin
sheshidar20-Jul-07 15:06
sheshidar20-Jul-07 15:06 
QuestionRe: How to hide column in list control Pin
David Crow21-Jul-07 11:27
David Crow21-Jul-07 11:27 
AnswerRe: How to hide column in list control Pin
Hamid_RT31-Jul-07 19:31
Hamid_RT31-Jul-07 19:31 
QuestionMediaSubType Key meaning for Adaptor Info Pin
Sonani Prakash19-Jul-07 22:41
Sonani Prakash19-Jul-07 22:41 
AnswerRe: MediaSubType Key meaning for Adaptor Info Pin
Abhijeet Pathak22-Jul-07 5:01
Abhijeet Pathak22-Jul-07 5:01 
Questionclosing Messagebox Pin
iayd19-Jul-07 22:22
iayd19-Jul-07 22:22 
AnswerRe: closing Messagebox Pin
thammadi19-Jul-07 23:17
thammadi19-Jul-07 23:17 
There is no timeout option for a MessageBox API.
I would suggest use a dialog box, make it generic enough to be used. Use timer inside the dialog box.

something like this:
Call SetTimer(1, 10000, NULL) in CMsgBoxDlg::OnInitDialog() method.
//10000 for 10 secs
In timer method:
void CMsgBoxDlg::OnTimer(UINT nIDEvent)
{
// TODO: Add your message handler code here and/or call default
CDialog::OnOK();
CDialog::OnTimer(nIDEvent);
}

Add a public member function to accept message box string and caption. Use static control to display the provided string on the dialog box with a 'Ok' button.

Hope this helps

Thammadi
AnswerRe: closing Messagebox Pin
David Crow20-Jul-07 3:30
David Crow20-Jul-07 3:30 
AnswerRe: closing Messagebox Pin
Hamid_RT31-Jul-07 19:26
Hamid_RT31-Jul-07 19:26 
QuestionSHCreateStreamOnFileW() problem Pin
josip cagalj19-Jul-07 22:12
josip cagalj19-Jul-07 22:12 
AnswerRe: SHCreateStreamOnFileW() problem Pin
tanvon malik19-Jul-07 23:02
tanvon malik19-Jul-07 23:02 
GeneralRe: SHCreateStreamOnFileW() problem [modified] Pin
josip cagalj20-Jul-07 0:04
josip cagalj20-Jul-07 0:04 
AnswerRe: SHCreateStreamOnFileW() problem Pin
Michael Dunn21-Jul-07 10:14
sitebuilderMichael Dunn21-Jul-07 10:14 
Questionproblem in communication with UDP Pin
whiteclouds19-Jul-07 22:06
whiteclouds19-Jul-07 22:06 
QuestionRe: problem in communication with UDP Pin
Mark Salsbery20-Jul-07 6:01
Mark Salsbery20-Jul-07 6:01 
AnswerRe: problem in communication with UDP Pin
whiteclouds22-Jul-07 17:32
whiteclouds22-Jul-07 17:32 
GeneralRe: problem in communication with UDP Pin
Mark Salsbery23-Jul-07 5:02
Mark Salsbery23-Jul-07 5:02 
QuestionUTF problem Pin
Suneet.0319-Jul-07 21:52
Suneet.0319-Jul-07 21:52 
AnswerRe: UTF problem Pin
Cedric Moonen19-Jul-07 22:15
Cedric Moonen19-Jul-07 22:15 
GeneralRe: UTF problem Pin
Matthew Faithfull19-Jul-07 22:18
Matthew Faithfull19-Jul-07 22:18 
GeneralRe: UTF problem Pin
Suneet.0319-Jul-07 22:26
Suneet.0319-Jul-07 22:26 
GeneralRe: UTF problem Pin
Matthew Faithfull19-Jul-07 23:00
Matthew Faithfull19-Jul-07 23:00 
GeneralRe: UTF problem Pin
Suneet.0319-Jul-07 23:22
Suneet.0319-Jul-07 23:22 
GeneralRe: UTF problem Pin
Matthew Faithfull20-Jul-07 0:34
Matthew Faithfull20-Jul-07 0:34 

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.