Click here to Skip to main content
15,921,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: dodgy serial communication Pin
Fredrik Skog7-Sep-03 20:20
Fredrik Skog7-Sep-03 20:20 
GeneralRe: dodgy serial communication Pin
Ted Ferenc7-Sep-03 21:35
Ted Ferenc7-Sep-03 21:35 
GeneralRe: dodgy serial communication Pin
macmac388-Sep-03 1:28
macmac388-Sep-03 1:28 
Questioncan not access the calss view???? Pin
wow99997-Sep-03 16:44
wow99997-Sep-03 16:44 
AnswerRe: can not access the calss view???? Pin
PengFeidu7-Sep-03 20:00
PengFeidu7-Sep-03 20:00 
AnswerRe: can not access the calss view???? Pin
Fredrik Skog7-Sep-03 20:24
Fredrik Skog7-Sep-03 20:24 
AnswerRe: can not access the calss view???? Pin
Hari Krishnan (Noida)7-Sep-03 20:37
Hari Krishnan (Noida)7-Sep-03 20:37 
GeneralHelp! Problem loading BITMAP into the Custom Dialog Pin
colormyiris7-Sep-03 16:21
colormyiris7-Sep-03 16:21 
Hi all,
I am having problem to load BITMAP on a Custom Dialog.
Everything is ok, i mean.. from the main dialog, i clicked button A to launch the Custom Dialog.
Compiled, Run...works perfect..the Custom DIalog came out..

but the problem is how to load a BITMAP into and display on the custom dialog???
Its totally different compare to loading into the main dialog? (i know how to load into main dialog)..

My custom dialog do not have the OnInitDialog() and the OnPaint() function!!?!

So should i declare some new one?

so where should i put these codes??? put them in the main dialog header file or the custom dialog header file??

public:
CRect rectStaticClient;
int sourcex, sourcey,offsetx,offsety;
protected:
CDC m_dcMem; // Compatible Memory DC for dialog
HBITMAP m_hBmpOld; // Handle of old bitmap to save
HBITMAP m_hBmpNew; // Handle of new bitmap from file
BITMAP m_bmInfo; // Bitmap Information structure

also i suppose to put this into OnPaint()

CPaintDC dc(this);
dc.BitBlt(offsetx,offsety,m_size.cx,m_size.cy,
&m_dcMem, sourcex, sourcey,SRCCOPY);
CDialog::OnPaint();

but now..where should i put them?

also...all those member variables.. where should i declare them?
into the Main Dialog or into the Custom Dialog??

hope u guys can help and guide me.
thanks alot..

regards,
Thong
twh81@tm.net.my

...
GeneralWindows memory mapping question Pin
Kuniva7-Sep-03 10:00
Kuniva7-Sep-03 10:00 
GeneralRe: Windows memory mapping question Pin
Dave Bryant7-Sep-03 14:37
Dave Bryant7-Sep-03 14:37 
GeneralRe: Windows memory mapping question Pin
Kuniva7-Sep-03 22:28
Kuniva7-Sep-03 22:28 
Generala perplexing access violation... I just wanna be tidy! ;-) Pin
ENewton7-Sep-03 8:25
ENewton7-Sep-03 8:25 
GeneralRe: a perplexing access violation... I just wanna be tidy! ;-) Pin
Taka Muraoka7-Sep-03 8:54
Taka Muraoka7-Sep-03 8:54 
GeneralRe: a perplexing access violation... I just wanna be tidy! ;-) Pin
ENewton7-Sep-03 9:39
ENewton7-Sep-03 9:39 
GeneralRe: a perplexing access violation... I just wanna be tidy! ;-) Pin
Taka Muraoka7-Sep-03 9:41
Taka Muraoka7-Sep-03 9:41 
GeneralRe: a perplexing access violation... I just wanna be tidy! ;-) Pin
ENewton7-Sep-03 10:05
ENewton7-Sep-03 10:05 
GeneralRe: a perplexing access violation... I just wanna be tidy! ;-) Pin
Ted Ferenc7-Sep-03 12:26
Ted Ferenc7-Sep-03 12:26 
GeneralRe: a perplexing access violation... I just wanna be tidy! ;-) Pin
Gary R. Wheeler7-Sep-03 12:30
Gary R. Wheeler7-Sep-03 12:30 
GeneralConverting a MFC CView app to an ActiveX control Pin
AJ1237-Sep-03 7:29
AJ1237-Sep-03 7:29 
GeneralRe: Converting a MFC CView app to an ActiveX control Pin
igor19607-Sep-03 10:34
igor19607-Sep-03 10:34 
GeneralDomains and Workgroups List Pin
Frank Deo7-Sep-03 7:20
Frank Deo7-Sep-03 7:20 
GeneralRe: Domains and Workgroups List Pin
Frank Deo7-Sep-03 9:56
Frank Deo7-Sep-03 9:56 
GeneralReferencing "internal" resources in MFC Pin
Antti Keskinen7-Sep-03 5:28
Antti Keskinen7-Sep-03 5:28 
GeneralRe: Referencing "internal" resources in MFC Pin
Michael Dunn7-Sep-03 8:17
sitebuilderMichael Dunn7-Sep-03 8:17 
GeneralRe: Referencing "internal" resources in MFC Pin
PJ Arends7-Sep-03 8:21
professionalPJ Arends7-Sep-03 8:21 

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.