Click here to Skip to main content
15,564,637 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: DialogBox fuction not executing its procedure Pin
coco24323-Aug-22 7:30
coco24323-Aug-22 7:30 
GeneralRe: DialogBox fuction not executing its procedure Pin
Richard MacCutchan20-Aug-22 0:14
mveRichard MacCutchan20-Aug-22 0:14 
GeneralRe: DialogBox fuction not executing its procedure Pin
Richard MacCutchan19-Aug-22 5:48
mveRichard MacCutchan19-Aug-22 5:48 
Questionmacro function definition Pin
coco24318-Aug-22 2:43
coco24318-Aug-22 2:43 
AnswerRe: macro function definition Pin
Mircea Neacsu18-Aug-22 3:06
Mircea Neacsu18-Aug-22 3:06 
GeneralRe: macro function definition Pin
coco24318-Aug-22 3:08
coco24318-Aug-22 3:08 
AnswerRe: macro function definition Pin
coco24318-Aug-22 3:06
coco24318-Aug-22 3:06 
GeneralRe: macro function definition Pin
Mircea Neacsu18-Aug-22 3:18
Mircea Neacsu18-Aug-22 3:18 
Are you seriously targeting Windows versions prior to 3.5 ? Laugh | :laugh:

All the fluff chSETDLGICONS goes through is completely useless. My advice would be to replace it with the last 2 SendMessage calls:
C++
SendMessage(hwnd, WM_SETICON, TRUE, (LPARAM)        \
				 LoadIcon(GetWindowInstance(hWnd),                    \
				 MAKEINTRESOURCE(idilarge)));                    \
			 SendMessage(hWnd, WM_SECTION, FALSE, (LPARAM)       \
				 LoadIcon(GetWindowInstance(hwnd),                    \
				 MAKEINTRESOURCE(idiSmall)));

Mircea

GeneralRe: macro function definition Pin
coco24318-Aug-22 3:43
coco24318-Aug-22 3:43 
GeneralRe: macro function definition Pin
Mircea Neacsu18-Aug-22 3:53
Mircea Neacsu18-Aug-22 3:53 
GeneralRe: macro function definition Pin
coco24318-Aug-22 4:30
coco24318-Aug-22 4:30 
GeneralRe: macro function definition Pin
Richard MacCutchan18-Aug-22 5:28
mveRichard MacCutchan18-Aug-22 5:28 
GeneralRe: macro function definition Pin
coco24318-Aug-22 5:46
coco24318-Aug-22 5:46 
GeneralRe: macro function definition Pin
Richard MacCutchan18-Aug-22 5:50
mveRichard MacCutchan18-Aug-22 5:50 
GeneralRe: macro function definition Pin
coco24318-Aug-22 6:18
coco24318-Aug-22 6:18 
GeneralLearning the Win API Pin
trønderen18-Aug-22 7:58
trønderen18-Aug-22 7:58 
GeneralRe: Learning the Win API Pin
coco24318-Aug-22 9:38
coco24318-Aug-22 9:38 
AnswerRe: macro function definition Pin
coco24318-Aug-22 3:21
coco24318-Aug-22 3:21 
GeneralRe: macro function definition Pin
coco24318-Aug-22 3:37
coco24318-Aug-22 3:37 
AnswerRe: macro function definition Pin
Richard MacCutchan18-Aug-22 4:38
mveRichard MacCutchan18-Aug-22 4:38 
GeneralRe: macro function definition Pin
coco24318-Aug-22 4:50
coco24318-Aug-22 4:50 
GeneralRe: macro function definition Pin
Richard MacCutchan18-Aug-22 5:04
mveRichard MacCutchan18-Aug-22 5:04 
GeneralRe: macro function definition Pin
coco24318-Aug-22 5:28
coco24318-Aug-22 5:28 
GeneralRe: macro function definition Pin
Richard MacCutchan18-Aug-22 5:40
mveRichard MacCutchan18-Aug-22 5:40 
QuestionReplace CString Format() Pin
2022 Dude16-Aug-22 8:40
2022 Dude16-Aug-22 8:40 

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.