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

C / C++ / MFC

 
GeneralRe: Streams and MFC Pin
Neville Franks7-Dec-04 23:52
Neville Franks7-Dec-04 23:52 
GeneralRe: Streams and MFC Pin
sweep1237-Dec-04 21:58
sweep1237-Dec-04 21:58 
GeneralVC++ Profiler Pin
Paper#7-Dec-04 5:05
Paper#7-Dec-04 5:05 
GeneralRe: VC++ Profiler Pin
Neville Franks7-Dec-04 9:08
Neville Franks7-Dec-04 9:08 
GeneralRe: VC++ Profiler Pin
John R. Shaw7-Dec-04 12:44
John R. Shaw7-Dec-04 12:44 
Generalwhy SCL not support Unicode filename Pin
sprewellkobe7-Dec-04 4:11
sprewellkobe7-Dec-04 4:11 
GeneralModifying a Bitmap Pin
nripun7-Dec-04 2:52
nripun7-Dec-04 2:52 
GeneralRe: Modifying a Bitmap Pin
John R. Shaw7-Dec-04 13:12
John R. Shaw7-Dec-04 13:12 
Load the bitmap into 2 different CBitmaps, one for each dialog.

To change pixel values:
1) Select current CBitmap into a memory DC and use GDI drawing functions.
2) Restore memory DC to initial state.
3) Update bitmap in 3rd dialog (InvalidateRect...What ever).

To change the size:
1) Create a new CBitmap of the needed size and select it into a memeory DC.
2) Select current CBitmap into a memory DC.
3) Use StretchBlt (resize bitmap) to copy the current CBitmap to the new CBitmap. Or Use BitBlt to copy any piece (sub-rectnagle) of the current CBitmap to the new CBitmap.
4) Restore memory DCs to intial states.
5) Make the new CBitmap your current bitmap, then destroy previous CBitmap (unless undo is required).
6) Update bitmap in 3rd dialog (InvalidateRect...What ever).

Well thats a general outline of what is required based on your post.

Good Luck!

INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
GeneralResizing Activex control Pin
Almenara7-Dec-04 2:16
Almenara7-Dec-04 2:16 
GeneralRe: Resizing Activex control Pin
Cedric Moonen7-Dec-04 2:21
Cedric Moonen7-Dec-04 2:21 
GeneralShell Notify ( icons disappeas on mouse over) Pin
Abhi Lahare7-Dec-04 2:13
Abhi Lahare7-Dec-04 2:13 
GeneralNo "Press any key to continue" Pin
Member 9504207-Dec-04 1:59
Member 9504207-Dec-04 1:59 
GeneralRe: No "Press any key to continue" Pin
David Crow7-Dec-04 3:33
David Crow7-Dec-04 3:33 
GeneralRe: No "Press any key to continue" Pin
Member 9504207-Dec-04 8:32
Member 9504207-Dec-04 8:32 
GeneralRe: No "Press any key to continue" Pin
David Crow7-Dec-04 9:15
David Crow7-Dec-04 9:15 
GeneralRe: No "Press any key to continue" Pin
Member 9504207-Dec-04 10:56
Member 9504207-Dec-04 10:56 
GeneralRe: No "Press any key to continue" Pin
toxcct7-Dec-04 21:39
toxcct7-Dec-04 21:39 
Generalinterchanging dialog boxes Pin
haseeb_saeed7-Dec-04 1:31
haseeb_saeed7-Dec-04 1:31 
GeneralProblem in print preview Pin
Member 12010136-Dec-04 23:28
Member 12010136-Dec-04 23:28 
GeneralProblem in autoprint Pin
Member 12010136-Dec-04 23:22
Member 12010136-Dec-04 23:22 
GeneralRe: Problem in autoprint Pin
David Crow7-Dec-04 3:34
David Crow7-Dec-04 3:34 
GeneralRe: Problem in autoprint Pin
Member 12010138-Dec-04 20:01
Member 12010138-Dec-04 20:01 
GeneralRe: Problem in autoprint Pin
David Crow9-Dec-04 2:27
David Crow9-Dec-04 2:27 
Questioncan i open same com port(eg:com1) in both two class Pin
vc-programmer-6-Dec-04 22:23
vc-programmer-6-Dec-04 22:23 
AnswerRe: can i open same com port(eg:com1) in both two class Pin
Cedric Moonen6-Dec-04 22:29
Cedric Moonen6-Dec-04 22:29 

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.