Click here to Skip to main content
15,917,177 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to release EMS memory of a graph in the CView? Pin
mzt3-May-02 0:13
mzt3-May-02 0:13 
QuestionHow to solve a flashing problem? Pin
mzt3-May-02 0:00
mzt3-May-02 0:00 
AnswerRe: How to solve a flashing problem? Pin
Eugene Pustovoyt3-May-02 0:21
Eugene Pustovoyt3-May-02 0:21 
GeneralToolbar buttons in Dialog Box Pin
LittleYellowBird2-May-02 23:33
LittleYellowBird2-May-02 23:33 
GeneralRe: Toolbar buttons in Dialog Box Pin
Shog93-May-02 5:16
sitebuilderShog93-May-02 5:16 
GeneralRe: Toolbar buttons in Dialog Box Pin
LittleYellowBird7-May-02 1:18
LittleYellowBird7-May-02 1:18 
GeneralCapture Problem - Directx Pin
Sameer Maggon2-May-02 23:29
Sameer Maggon2-May-02 23:29 
GeneralButton with Bitmap Image Pin
John Clump2-May-02 23:12
John Clump2-May-02 23:12 
Hi everyone. I know this is a bit of a beginner question, but I never had to do this task before and am a bit confused as the best way to do it. I have a button on a dialog, which I want to place a bitmap on (specifically, the little printer bitmap under the graphics/bitmaps directory of VC++). I can either make a CButton object, and do it this way, or use CBitmapButton. I want the button to work like a toolbar button (that is, in the way it looks, and the fact only 1 bitmap is used for all button states, not the up to 4 that CBitmapButton uses).

I was going to use a CButton and place a bitmap on it, but I couldn't figure out how to get my bitmap (which is in the resource file as IDC_BMP_BITMAP) into an HBITMAP parameter, which CButton requires. I tried using CBitmap to get a HBITMAP handle back, but I couldn't quite figure out how to do this. I am sure this is a simple procedure, but it has me stumped tonight Roll eyes | :rolleyes: Thanks in advance for any help!
GeneralRe: Button with Bitmap Image Pin
Michael P Butler2-May-02 23:18
Michael P Butler2-May-02 23:18 
GeneralRe: Button with Bitmap Image Pin
GUEJO4-Jun-02 0:47
GUEJO4-Jun-02 0:47 
GeneralI am looking for cryptografic algorythm... Pin
2-May-02 23:05
suss2-May-02 23:05 
GeneralRe: I am looking for cryptografic algorythm... Pin
markkuk3-May-02 0:06
markkuk3-May-02 0:06 
GeneralAcquire a View HANDLE :: MFC Pin
valikac2-May-02 21:09
valikac2-May-02 21:09 
GeneralRe: Acquire a View HANDLE :: MFC Pin
Nish Nishant2-May-02 21:19
sitebuilderNish Nishant2-May-02 21:19 
GeneralRe: Acquire a View HANDLE :: MFC Pin
valikac3-May-02 3:52
valikac3-May-02 3:52 
GeneralRe: Acquire a View HANDLE :: MFC Pin
Nish Nishant3-May-02 4:35
sitebuilderNish Nishant3-May-02 4:35 
GeneralRe: Acquire a View HANDLE :: MFC Pin
valikac3-May-02 8:59
valikac3-May-02 8:59 
GeneralRe: Acquire a View HANDLE :: MFC Pin
Nish Nishant3-May-02 13:54
sitebuilderNish Nishant3-May-02 13:54 
GeneralGetOverlapedresult Pin
meirav2-May-02 20:41
meirav2-May-02 20:41 
GeneralRe: GetOverlapedresult Pin
.::RockNix::.3-May-02 1:29
.::RockNix::.3-May-02 1:29 
GeneralDirectx - DirectShow Pin
Sameer Maggon2-May-02 18:11
Sameer Maggon2-May-02 18:11 
GeneralRe: Directx - DirectShow Pin
Hadi Rezaee2-May-02 20:11
Hadi Rezaee2-May-02 20:11 
GeneralGetGuiTHreadInfo Pin
Stan the man2-May-02 17:46
Stan the man2-May-02 17:46 
Generalsending mouse messages Pin
vins2-May-02 17:36
vins2-May-02 17:36 
GeneralRe: sending mouse messages Pin
Alexandru Savescu3-May-02 0:56
Alexandru Savescu3-May-02 0:56 

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.