Ich habe jetzt herausgefunden wie ich das Bitmap ändern kann.
Code:
m_hbm =::LoadBitmap(AfxGetInstanceHandle(),MAKEINTRESOURCE(IDB_BITMAP));
controlvariable.SetBitmap(m_hbm);
Ich habe m_hbm direkt im .cpp-File definiert und so funktionierts auch.
Was mich aber iritiert, ist dass wenn ich m_hbm im h.file definiere ich folgende Fehlermeldung erhalte:
Error 1 error LNK2005: "struct HBITMAP__ * m_hbm" (?m_hbm@@3PAUHBITMAP__@@A) already defined in uCom.net.obj uCom.netDlg.obj
Error 2 fatal error LNK1169: one or more multiply defined symbols found Z:\SpezProjekte\GlobalLink\Projekt_NURAD\software\GUI\dotNET\30.05.2008_pm_uCom.net\30.05.2008_pm_uCom.net\uCom.net\Debug\uCom.net.exe 1