Click here to Skip to main content
15,917,709 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: scrolling in dailog boxes Pin
Cool Ju19-Apr-06 21:30
Cool Ju19-Apr-06 21:30 
GeneralRe: scrolling in dailog boxes Pin
thathvamasi19-Apr-06 22:11
thathvamasi19-Apr-06 22:11 
GeneralRe: scrolling in dailog boxes Pin
Cool Ju19-Apr-06 23:04
Cool Ju19-Apr-06 23:04 
AnswerRe: scrolling in dailog boxes Pin
David Crow20-Apr-06 3:51
David Crow20-Apr-06 3:51 
GeneralRe: scrolling in dailog boxes Pin
thathvamasi20-Apr-06 17:34
thathvamasi20-Apr-06 17:34 
Questionprogramatically launching menu item and submenu items using short cut keys only Pin
giftsana19-Apr-06 16:25
giftsana19-Apr-06 16:25 
Questiondisplaying dialog in MDIParent when it's loaded Pin
venadder19-Apr-06 15:44
venadder19-Apr-06 15:44 
AnswerRe: displaying dialog in MDIParent when it's loaded Pin
kiran janaswamy19-Apr-06 19:43
kiran janaswamy19-Apr-06 19:43 
GeneralRe: displaying dialog in MDIParent when it's loaded Pin
venadder21-Apr-06 6:24
venadder21-Apr-06 6:24 
GeneralRe: displaying dialog in MDIParent when it's loaded Pin
venadder21-Apr-06 7:19
venadder21-Apr-06 7:19 
AnswerRe: displaying dialog in MDIParent when it's loaded Pin
Cool Ju19-Apr-06 21:39
Cool Ju19-Apr-06 21:39 
GeneralRe: displaying dialog in MDIParent when it's loaded Pin
venadder21-Apr-06 6:10
venadder21-Apr-06 6:10 
GeneralRe: displaying dialog in MDIParent when it's loaded Pin
Cool Ju23-Apr-06 17:15
Cool Ju23-Apr-06 17:15 
GeneralRe: displaying dialog in MDIParent when it's loaded Pin
venadder24-Apr-06 6:37
venadder24-Apr-06 6:37 
GeneralRe: displaying dialog in MDIParent when it's loaded Pin
Cool Ju24-Apr-06 19:15
Cool Ju24-Apr-06 19:15 
GeneralRe: displaying dialog in MDIParent when it's loaded Pin
venadder25-Apr-06 5:30
venadder25-Apr-06 5:30 
QuestionConditionals and RC files Pin
rentzk19-Apr-06 15:14
rentzk19-Apr-06 15:14 
AnswerRe: Conditionals and RC files Pin
Stephen Hewitt19-Apr-06 15:37
Stephen Hewitt19-Apr-06 15:37 
GeneralRe: Conditionals and RC files Pin
Bram van Kampen19-Apr-06 16:14
Bram van Kampen19-Apr-06 16:14 
GeneralRe: Conditionals and RC files Pin
Stephen Hewitt19-Apr-06 17:39
Stephen Hewitt19-Apr-06 17:39 
GeneralRe: Conditionals and RC files Pin
David Crow20-Apr-06 3:54
David Crow20-Apr-06 3:54 
GeneralRe: Conditionals and RC files Pin
kiran janaswamy19-Apr-06 19:02
kiran janaswamy19-Apr-06 19:02 
GeneralRe: Conditionals and RC files Pin
Stephen Hewitt19-Apr-06 20:38
Stephen Hewitt19-Apr-06 20:38 
QuestionRe: Conditionals and RC files Pin
David Crow20-Apr-06 3:59
David Crow20-Apr-06 3:59 
AnswerRe: Conditionals and RC files Pin
rentzk20-Apr-06 5:48
rentzk20-Apr-06 5:48 
DavidCrow wrote:
How about:

IDR_MAINFRAME1 ICON "..\\res\\MAIN.ico"
IDR_MAINFRAME2 ICON "..\\res\\MAIN.ico"
IDR_MAINFRAME3 ICON "..\\res\\SECONDARY.ico"
...
CMyDlg::CProgressTestDlg(CWnd* pParent /*=NULL*/)
: CDialog(CMyDlg::IDD, pParent)
{
#if defined(APSTUDIO_INVOKED)
m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME1);
#elif defined(MAIN_PROG)
m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME2);
#else
m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME3);
#endif
}



If I'm reading the above correctly, this will cause the program to use the correct icon when it is running, but not when the executable is being displayed in explorer, folder browser, etc. It would appear that windows uses the icon with the lowest ID number for for this.

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.