Skip to main content
GameDev.net gamedev.net
🔒 Locked

CBitmapButtons

Started by Tonka26 Feb 26, 2003 at 3:10 PM 1 replies 350+ views
Original Post
Tonka26
Tonka26
Im trying to Use a CBitmapButtons, I have it working using the flollowing function to load the new bitmaps. BOOL LoadBitmaps( UINT nIDBitmapResource, UINT nIDBitmapResourceSel = 0, UINT nIDBitmapResourceFocus = 0, UINT nIDBitmapResourceDisabled = 0 ); However I would like to use Bitmaps that I have loaded dynamicaly from the Hard drive instead of ones that are in the resource Manager. so my question is how do I convert a CBitmap or a HBITMAP to an int resource, or an LPCTSTR?. Any help would be great.
Shannon Barber
Shannon Barber
The LPCTSTR is a null-terminate string that points to the bitmap on disk. Those Win32 functions will check the value you pass them, and they will know if it''s a pointer or not. If it''s a pointer, it assumes a path to a file on disk - if it''s not a pointer it assumes a resource ID.
The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.