Click here to Skip to main content
15,889,335 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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.
QuestionMFC, DLL's Pin
Bram van Kampen19-Apr-06 14:37
Bram van Kampen19-Apr-06 14:37 
AnswerRe: Forwarding API's Pin
Bram van Kampen19-Apr-06 16:02
Bram van Kampen19-Apr-06 16:02 
QuestionCFile::Read Pin
Sam 200619-Apr-06 14:16
Sam 200619-Apr-06 14:16 
AnswerRe: CFile::Read Pin
valikac19-Apr-06 14:51
valikac19-Apr-06 14:51 
GeneralRe: CFile::Read Pin
Sam 200619-Apr-06 17:29
Sam 200619-Apr-06 17:29 
AnswerRe: CFile::Read Pin
Bram van Kampen19-Apr-06 15:56
Bram van Kampen19-Apr-06 15:56 
AnswerRe: CFile::Read Pin
kiran janaswamy19-Apr-06 19:38
kiran janaswamy19-Apr-06 19:38 
GeneralRe: CFile::Read Pin
David Crow20-Apr-06 4:02
David Crow20-Apr-06 4:02 
QuestionCrypto Api - create key with standard RSA rather than strong RSA (for W2K compatibility) Pin
EthannCastell19-Apr-06 13:52
EthannCastell19-Apr-06 13:52 
AnswerRe: Crypto Api - create key with standard RSA rather than strong RSA (for W2K compatibility) Pin
YaronNir20-Apr-06 0:40
YaronNir20-Apr-06 0:40 
QuestionHow I can enforce key length and CSP? Pin
EthannCastell20-Apr-06 2:33
EthannCastell20-Apr-06 2:33 
QuestionProperty Sheet Problem Pin
si_6919-Apr-06 13:11
si_6919-Apr-06 13:11 
AnswerRe: Property Sheet Problem Pin
valikac19-Apr-06 14:57
valikac19-Apr-06 14:57 
GeneralRe: Property Sheet Problem Pin
si_6919-Apr-06 22:32
si_6919-Apr-06 22:32 
GeneralRe: Property Sheet Problem Pin
David Crow20-Apr-06 4:04
David Crow20-Apr-06 4:04 
AnswerRe: Property Sheet Problem Pin
prasad_som19-Apr-06 18:25
prasad_som19-Apr-06 18:25 
GeneralRe: Property Sheet Problem Pin
kiran janaswamy19-Apr-06 19:12
kiran janaswamy19-Apr-06 19:12 

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.