Click here to Skip to main content
16,009,068 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Check Numeric value Pin
Lane Yu27-May-07 23:57
Lane Yu27-May-07 23:57 
QuestionProblem in "multi thread to download http file",thanks! Pin
victording27-May-07 22:27
victording27-May-07 22:27 
Questionabout SendMessage Pin
mt_samiei27-May-07 22:07
mt_samiei27-May-07 22:07 
AnswerRe: about SendMessage Pin
CPallini27-May-07 22:51
mveCPallini27-May-07 22:51 
JokeRe: about SendMessage Pin
Rajesh R Subramanian28-May-07 1:08
professionalRajesh R Subramanian28-May-07 1:08 
GeneralRe: about SendMessage Pin
CPallini28-May-07 1:36
mveCPallini28-May-07 1:36 
JokeRe: about SendMessage Pin
Hamid_RT28-May-07 1:59
Hamid_RT28-May-07 1:59 
AnswerRe: about SendMessage Pin
nitin328-May-07 0:30
nitin328-May-07 0:30 
//LRESULT SendMesage ( HWND hWnd , UINT message , WPARAM wParam , LPARAM lParam )
//hWnd : Handle to window
//message : WM_***** message ( eg:EM_CLOSE , WM_PAINT ... )
wParam & lParam : additional message specific arguments
//MFC
//---

void CMyDlg::OnBnClickedOk()
{
SendMessage( WM_CLOSE , (WPARAM)0 , (LPARAM)0 ) ; //close current window
//or
::SendMessage( HWND_BROADCAST , WM_CLOSE , (WPARAM)0 , (LPARAM)0 ) ; /*close desktop windows */
};

//WIN32
//
//#include<windows.h>
LRESULT OnAnyEvent( HWND hWnd )//invoked from windowproc
{
SendMessage( hWnd , WM_CLOSE , (WPARAM)0 , (LPARAM)0 ) ;
}
//Visit msdn for complete reference for Windows Messages
AnswerRe: about SendMessage Pin
Hamid_RT28-May-07 1:13
Hamid_RT28-May-07 1:13 
QuestionHow to block Alt+F4 for a dialogbox Pin
Neo Andreson27-May-07 21:51
Neo Andreson27-May-07 21:51 
AnswerRe: How to block Alt+F4 for a dialogbox Pin
Rajesh R Subramanian27-May-07 22:07
professionalRajesh R Subramanian27-May-07 22:07 
QuestionHow to remove the selected temporary internet files programmatically? Pin
Mushtaque Nizamani27-May-07 21:50
Mushtaque Nizamani27-May-07 21:50 
AnswerRe: How to remove the selected temporary internet files programmatically? Pin
Hamid_RT28-May-07 1:57
Hamid_RT28-May-07 1:57 
GeneralRe: How to remove the selected temporary internet files programmatically? Pin
Mushtaque Nizamani31-May-07 20:52
Mushtaque Nizamani31-May-07 20:52 
GeneralRe: How to remove the selected temporary internet files programmatically? Pin
Hamid_RT1-Jun-07 1:28
Hamid_RT1-Jun-07 1:28 
QuestionConvert a text file in DOS mode to UNIX mode Pin
askmeby27-May-07 21:43
askmeby27-May-07 21:43 
AnswerRe: Convert a text file in DOS mode to UNIX mode Pin
kakan27-May-07 22:00
professionalkakan27-May-07 22:00 
AnswerRe: Convert a text file in DOS mode to UNIX mode Pin
CPallini27-May-07 22:00
mveCPallini27-May-07 22:00 
QuestionHow to save .doc (MS Word File ) in MySQL Database Pin
Y_Kaushik27-May-07 21:15
Y_Kaushik27-May-07 21:15 
QuestionLinker Error 2019 Pin
Programm3r27-May-07 20:52
Programm3r27-May-07 20:52 
AnswerRe: Linker Error 2019 Pin
Programm3r27-May-07 21:17
Programm3r27-May-07 21:17 
QuestionMicrosoft Word in windows Console Application Pin
Rayi27-May-07 20:35
Rayi27-May-07 20:35 
AnswerRe: Microsoft Word in windows Console Application Pin
Anurag Gandhi27-May-07 20:49
professionalAnurag Gandhi27-May-07 20:49 
GeneralRe: Microsoft Word in windows Console Application Pin
Rayi27-May-07 21:10
Rayi27-May-07 21:10 
AnswerRe: Microsoft Word in windows Console Application Pin
CPallini27-May-07 21:44
mveCPallini27-May-07 21:44 

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.