Click here to Skip to main content
15,914,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: IE web browser plugins Pin
Prakash Nadar29-Jan-04 23:09
Prakash Nadar29-Jan-04 23:09 
Questionhow to convert text into image using VC++6.0 Pin
emmatty29-Jan-04 18:39
emmatty29-Jan-04 18:39 
AnswerRe: how to convert text into image using VC++6.0 Pin
basementman30-Jan-04 10:04
basementman30-Jan-04 10:04 
GeneralFill Color in a static control at runtime Pin
swarnamanoo29-Jan-04 18:15
swarnamanoo29-Jan-04 18:15 
GeneralRe: Fill Color in a static control at runtime Pin
amit sebiz29-Jan-04 19:28
amit sebiz29-Jan-04 19:28 
Questionhow to disable Shift key Pin
wow999929-Jan-04 18:14
wow999929-Jan-04 18:14 
AnswerRe: how to disable Shift key Pin
Anonymous30-Jan-04 2:52
Anonymous30-Jan-04 2:52 
QuestionAbout the WM_ENABLE? Pin
zhaopzhi29-Jan-04 18:13
zhaopzhi29-Jan-04 18:13 
To make the control of IDC_RADIO1 to be enabled state,I tried SendDlgItemMessage and EnableWindow respectively.The result is the statement "EnableWindow(GetDlgItem(hDlg,IDC_RADIO1),TRUE);" succeeds, but the "
SendDlgItemMessage( hDlg, IDC_RADIO1, WM_ENABLE, (WPARAM)0L, (LPARAM)0L );" is failing! Why???

The following is my codes:

// Mesage handler for about box.<br />
LRESULT CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)<br />
{<br />
  switch (message)<br />
  {<br />
   case WM_INITDIALOG:<br />
        return TRUE;<br />
   case WM_COMMAND:<br />
        switch(LOWORD(wParam))<br />
        { <br />
         case IDOK:<br />
	case IDCANCEL:<br />
	     EndDialog(hDlg, LOWORD(wParam));<br />
	     return TRUE;<br />
	case IDC_BUTTON1:<br />
	    //SendDlgItemMessage( hDlg, IDC_RADIO1, WM_ENABLE, (WPARAM)TRUE, (LPARAM)0L );//fail!<br />
	    EnableWindow(GetDlgItem(hDlg,IDC_RADIO1),TRUE);//succeed.<br />
	   //SendDlgItemMessage( hDlg, (int)IDC_BUTTON2, WM_ENABLE, (WPARAM)0L, (LPARAM)0L );//fail!		 		<br />
	   //SendMessage(GetDlgItem(hDlg,IDC_RADIO1), WM_ENABLE, (WPARAM)0L, (LPARAM)0L );//fail!<br />
	   break;<br />
	}<br />
	break;<br />
   }<br />
   return FALSE;<br />
}


Rap off for you,for me,for our human.
AnswerRe: About the WM_ENABLE? Pin
Weiye Chen29-Jan-04 20:26
Weiye Chen29-Jan-04 20:26 
GeneralNeed a SDK Cool Button Pin
Cael29-Jan-04 18:08
Cael29-Jan-04 18:08 
GeneralRe: Need a SDK Cool Button Pin
alex.barylski29-Jan-04 18:12
alex.barylski29-Jan-04 18:12 
GeneralRe: Need a SDK Cool Button Pin
Cael30-Jan-04 3:48
Cael30-Jan-04 3:48 
GeneralRe: Need a SDK Cool Button Pin
Michael Dunn29-Jan-04 19:43
sitebuilderMichael Dunn29-Jan-04 19:43 
GeneralDetecting that a window has closed Pin
Ryan Binns29-Jan-04 18:07
Ryan Binns29-Jan-04 18:07 
GeneralRe: Detecting that a window has closed Pin
basementman30-Jan-04 10:16
basementman30-Jan-04 10:16 
Questiondetecting logoff vs shutdown. WM_Endsession ?? Pin
rohit.dhamija29-Jan-04 18:07
rohit.dhamija29-Jan-04 18:07 
AnswerRe: detecting logoff vs shutdown. WM_Endsession ?? Pin
pankaj hedau17-Sep-10 21:43
pankaj hedau17-Sep-10 21:43 
Question0x8000?????? Pin
wow999929-Jan-04 18:06
wow999929-Jan-04 18:06 
AnswerRe: 0x8000?????? Pin
Ryan Binns29-Jan-04 18:11
Ryan Binns29-Jan-04 18:11 
GeneralRe: 0x8000?????? Pin
Steve S30-Jan-04 1:35
Steve S30-Jan-04 1:35 
GeneralRe: 0x8000?????? Pin
Ryan Binns30-Jan-04 1:56
Ryan Binns30-Jan-04 1:56 
GeneralRe: 0x8000?????? Pin
Steve S30-Jan-04 2:44
Steve S30-Jan-04 2:44 
GeneralRe: 0x8000?????? Pin
Ryan Binns30-Jan-04 3:00
Ryan Binns30-Jan-04 3:00 
GeneralRe: 0x8000?????? Pin
Tim Smith30-Jan-04 4:22
Tim Smith30-Jan-04 4:22 
GeneralRe: 0x8000?????? Pin
Ryan Binns30-Jan-04 13:25
Ryan Binns30-Jan-04 13:25 

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.