Click here to Skip to main content
15,896,154 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: THread TErmination PRoblem!! Pin
Christopher Duncan19-Sep-06 1:14
Christopher Duncan19-Sep-06 1:14 
AnswerRe: THread TErmination PRoblem!! Pin
_AnsHUMAN_ 19-Sep-06 1:17
_AnsHUMAN_ 19-Sep-06 1:17 
AnswerRe: THread TErmination PRoblem!! Pin
Jörgen Sigvardsson19-Sep-06 5:17
Jörgen Sigvardsson19-Sep-06 5:17 
QuestionToolbar image list color depth Pin
Christopher Duncan19-Sep-06 0:56
Christopher Duncan19-Sep-06 0:56 
AnswerRe: Toolbar image list color depth Pin
pratapM19-Sep-06 1:31
pratapM19-Sep-06 1:31 
AnswerRe: Toolbar image list color depth Pin
tanvon malik19-Sep-06 1:32
tanvon malik19-Sep-06 1:32 
AnswerRe: Toolbar image list color depth Pin
pratapM19-Sep-06 1:33
pratapM19-Sep-06 1:33 
AnswerRe: Toolbar image list color depth Pin
tanvon malik19-Sep-06 2:01
tanvon malik19-Sep-06 2:01 
sorry I am having today some problem posting answers.

1: load your bitmap

HBITMAP hbm = (HBITMAP)::LoadImage(AfxGetInstanceHandle(),
MAKEINTRESOURCE(IDR_MAINFRAME),
IMAGE_BITMAP,
0,0, LR_CREATEDIBSECTION | LR_LOADMAP3DCOLORS );

CBitmap bm;
bm.Attach(hbm);

2: make a 256 color image list

CImageList m_ilToolBar.Create(20,20,ILC_COLOR8,4,4);
m_ilToolBar.Add(&bm,(CBitmap*)NULL);

3: select that image list in your app toolbar
m_wndToolBar.GetToolBarCtrl().
SetImageList(&m_ilToolBar);



Tanvon
the brain behind ...

I Blog here

GeneralRe: Toolbar image list color depth Pin
Christopher Duncan19-Sep-06 4:26
Christopher Duncan19-Sep-06 4:26 
AnswerRe: Toolbar image list color depth Pin
Jörgen Sigvardsson19-Sep-06 2:07
Jörgen Sigvardsson19-Sep-06 2:07 
GeneralRe: Toolbar image list color depth Pin
Christopher Duncan19-Sep-06 4:29
Christopher Duncan19-Sep-06 4:29 
GeneralRe: Toolbar image list color depth Pin
Jörgen Sigvardsson19-Sep-06 5:11
Jörgen Sigvardsson19-Sep-06 5:11 
GeneralRe: Toolbar image list color depth Pin
Christopher Duncan19-Sep-06 11:24
Christopher Duncan19-Sep-06 11:24 
AnswerRe: Toolbar image list color depth Pin
KarstenK19-Sep-06 2:34
mveKarstenK19-Sep-06 2:34 
AnswerThanks, everyone! Pin
Christopher Duncan19-Sep-06 11:25
Christopher Duncan19-Sep-06 11:25 
QuestionHow to convert char* to char Pin
vc++_fragrance19-Sep-06 0:28
vc++_fragrance19-Sep-06 0:28 
AnswerRe: How to convert char* to char Pin
prasad_som19-Sep-06 0:37
prasad_som19-Sep-06 0:37 
GeneralRe: How to convert char* to char Pin
vc++_fragrance19-Sep-06 0:47
vc++_fragrance19-Sep-06 0:47 
QuestionRe: How to convert char* to char Pin
prasad_som19-Sep-06 1:05
prasad_som19-Sep-06 1:05 
AnswerRe: How to convert char* to char Pin
vc++_fragrance19-Sep-06 1:23
vc++_fragrance19-Sep-06 1:23 
GeneralRe: How to convert char* to char Pin
prasad_som19-Sep-06 2:14
prasad_som19-Sep-06 2:14 
GeneralRe: How to convert char* to char Pin
vc++_fragrance19-Sep-06 3:10
vc++_fragrance19-Sep-06 3:10 
GeneralRe: How to convert char* to char Pin
David Crow19-Sep-06 3:13
David Crow19-Sep-06 3:13 
GeneralRe: How to convert char* to char Pin
KarstenK19-Sep-06 2:32
mveKarstenK19-Sep-06 2:32 
AnswerRe: How to convert char* to char Pin
_AnsHUMAN_ 19-Sep-06 0:48
_AnsHUMAN_ 19-Sep-06 0:48 

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.