Click here to Skip to main content
15,886,026 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all

i have a CToolBar m_wndToolBar which has a bitmap in it:

m_wndToolBar.CreateEx(this);
m_wndToolBar.LoadToolBar(IDR_SECONDPANE);

m_pImageList->Create( 16, 16, ILC_COLOR24 | ILC_MASK, p_pToolbar->GetToolBarCtrl().GetButtonCount(), 0 );

The problem is: the bitmap is displayed right on a "normal" computer,

but far too small on a tablet. How can i set the size of the bitmapimage?

Tried alot of functions on msdn (e.g. setsizes), but nothing happens, or the wrong thing happens...

Does anyone know how to set the size of the bitmapimages in a toolbar?

Thx for any help!
Posted
Comments
Frankie-C 27-May-15 10:19am    
Using setsize what happened?
Have you considered the resolution of the tablet screen when setting the desired dimensions?
Member 10781325 27-May-15 10:55am    
hi, when i use setsize, only the toolbar height changes (becomes bigger, as i want)
But the bitmap stays small.... (i want, that it becomes bigger too)

I would take the resolution into account, but i cant even change the bitmap-size;-)
KarstenK 27-May-15 13:32pm    
Looks like you need a 32 pixel toolbar for the tablet. => Resolution?
Member 10781325 1-Jun-15 7:00am    
Thx for your help! I found (an ugly) solution. In vs10, default dpi-awarness is by default set on true. I set it on false, now my application looks as before;-)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900