本文介绍了创建映射位图未加载.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hWndToolbar = CreateToolbarEx(m_hWnd,
		                      WS_CHILD|WS_VISIBLE|CCS_ADJUSTABLE|WS_BORDER|CBRS_ALIGN_LEFT|TBSTYLE_TRANSPARENT,
	                              IDR_TOOLBAR1,
	                              NUMBUTTONS,
				           NULL,
			              IDR_TOOLBAR1,
				      tbrButtons,
				      NUMBUTTONS,
				     16, 16, 16,16,
				      sizeof(TBBUTTON));
HBITMAP hbm = CreateMappedBitmap(NULL, IDB_PAN, 0, &colorMap, 1);

TBADDBITMAP tb;
tb.hInst = NULL;
tb.nID = (UINT_PTR)hbm;
::SendMessage (hWndToolbar, TB_ADDBITMAP, 0, (LPARAM)&tb);
HBITMAP hbm2=CreateMappedBitmap(NULL, IDB_ZOOMPLUS,0, &colorMap, 1);
TBADDBITMAP tb1;
tb1.hInst = NULL;
tb1.nID = (UINT_PTR)hbm2;
::SendMessage (hWndToolbar, TB_ADDBITMAP, 0, (LPARAM)&tb1);
HBITMAP hbm3=CreateMappedBitmap(NULL, IDB_ZOOMMIN,0, &colorMap, 1);
TBADDBITMAP tb2;
tb2.hInst = NULL;
tb2.nID = (UINT_PTR)hbm3;
::SendMessage (hWndToolbar, TB_ADDBITMAP, 0, (LPARAM)&tb2);





当我尝试我的项目Cretemap位图未加载时,这在示例应用程序中有效.
任何人都可以帮助我





this is working in sample aplication.when i try my project Cretemap bitmap is not loaded.
any one can help me

推荐答案



这篇关于创建映射位图未加载.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-28 06:54