Click here to Skip to main content
15,912,082 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Closing all threads.. Pin
ThatsAlok2-May-07 23:56
ThatsAlok2-May-07 23:56 
AnswerRe: Closing all threads.. Pin
Atul2319-Apr-07 21:46
Atul2319-Apr-07 21:46 
AnswerRe: Closing all threads.. Pin
Eytukan21-Apr-07 0:14
Eytukan21-Apr-07 0:14 
QuestionAbout RegisterDeviceNotification() Pin
Aneesh Valeri19-Apr-07 20:02
Aneesh Valeri19-Apr-07 20:02 
AnswerRe: About RegisterDeviceNotification() Pin
GeorgeVN22-Apr-07 19:48
GeorgeVN22-Apr-07 19:48 
QuestionPassing more than one Query String in a Site map Pin
kaushik49019-Apr-07 19:50
kaushik49019-Apr-07 19:50 
AnswerRe: Passing more than one Query String in a Site map Pin
satishjha6-Nov-11 21:36
satishjha6-Nov-11 21:36 
QuestionHow to Subclass a MessageBox Button.. [modified] Pin
sdhexu19-Apr-07 19:13
sdhexu19-Apr-07 19:13 
I can't subclass the Button on MessageBox. Why ??

...............
SetWindowsHookEx(WH_CBT,(HOOKPROC)CBTProc.........
...............

LRESULT CALLBACK CBTProc(int nCode, WPARAM wParam, LPARAM lParam)
{
if(nCode == HCBT_CREATEWND)
{
HWND hWnd = (HWND) wParam;
LPCBT_CREATEWND pcb = (LPCBT_CREATEWND) lParam;
CWnd * pWnd = NULL;
TCHAR szClassName[255] = _T("\0");

GetClassName( hWnd, szClassName,sizeof(szClassName) / sizeof(TCHAR) );

if(! lstrcmp(szClassName, _T("Button")))
{
CButtonST pNewButton = new CButtonST;
if( pNewButton )
pNewButton->SubclassWindow( hWnd );
}
}
return CallNextHook( nCode, wParam, lParam);
}
But, I can't subclass MessageBox's Button. Why ??
Sorry, I'm a chinese, And my english is very poor..Frown | :(



-- modified at 1:27 Friday 20th April, 2007
QuestionHow to keep track of the objects in an editor Pin
kasturi_haribabu19-Apr-07 18:54
kasturi_haribabu19-Apr-07 18:54 
QuestionHelp about New Document Pin
Md. Mazharul Islam Khan19-Apr-07 18:51
Md. Mazharul Islam Khan19-Apr-07 18:51 
QuestionWin32 Pin
Anish_Animaynia19-Apr-07 17:31
Anish_Animaynia19-Apr-07 17:31 
AnswerRe: Win32 Pin
CPallini19-Apr-07 20:39
mveCPallini19-Apr-07 20:39 
GeneralRe: Win32 Pin
Anish_Animaynia19-Apr-07 22:21
Anish_Animaynia19-Apr-07 22:21 
GeneralRe: Win32 Pin
Rajesh R Subramanian19-Apr-07 22:39
professionalRajesh R Subramanian19-Apr-07 22:39 
GeneralRe: Win32 Pin
Alexandre GRANVAUD20-Apr-07 1:56
Alexandre GRANVAUD20-Apr-07 1:56 
GeneralRe: Win32 Pin
CPallini20-Apr-07 2:20
mveCPallini20-Apr-07 2:20 
GeneralRe: Win32 Pin
Mark Salsbery20-Apr-07 8:08
Mark Salsbery20-Apr-07 8:08 
AnswerRe: Win32 Pin
ThatsAlok2-May-07 23:54
ThatsAlok2-May-07 23:54 
QuestionMutiple file specs to find a file Pin
JayCarter_Online19-Apr-07 13:25
JayCarter_Online19-Apr-07 13:25 
AnswerRe: Mutiple file specs to find a file Pin
pbraun19-Apr-07 13:55
pbraun19-Apr-07 13:55 
GeneralRe: Mutiple file specs to find a file [modified] Pin
JayCarter_Online19-Apr-07 14:16
JayCarter_Online19-Apr-07 14:16 
GeneralRe: Mutiple file specs to find a file Pin
pbraun20-Apr-07 7:45
pbraun20-Apr-07 7:45 
AnswerRe: Mutiple file specs to find a file Pin
Alexandre GRANVAUD20-Apr-07 1:57
Alexandre GRANVAUD20-Apr-07 1:57 
QuestionHow to use System namespace in an MFC application? Pin
Electronic7519-Apr-07 12:17
Electronic7519-Apr-07 12:17 
AnswerRe: How to use System namespace in an MFC application? Pin
toxcct19-Apr-07 12:59
toxcct19-Apr-07 12:59 

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.