Click here to Skip to main content
15,895,192 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Where can I input parameter in VC7 when I debugger? Pin
chenxiujie15-Oct-05 2:07
chenxiujie15-Oct-05 2:07 
AnswerRe: Where can I input parameter in VC7 when I debugger? Pin
Fired Fish15-Oct-05 2:19
Fired Fish15-Oct-05 2:19 
Questionhow to create a DIB bitmap with a array Pin
daojinliu15-Oct-05 0:53
daojinliu15-Oct-05 0:53 
Questionprotected, public and private Pin
karmendra_js15-Oct-05 0:44
karmendra_js15-Oct-05 0:44 
AnswerRe: protected, public and private Pin
S. Senthil Kumar15-Oct-05 0:51
S. Senthil Kumar15-Oct-05 0:51 
AnswerRe: protected, public and private Pin
Gary R. Wheeler15-Oct-05 2:50
Gary R. Wheeler15-Oct-05 2:50 
AnswerRe: protected, public and private Pin
ThatsAlok15-Oct-05 4:53
ThatsAlok15-Oct-05 4:53 
QuestionInitial OnPaint Pin
Trollslayer15-Oct-05 0:43
mentorTrollslayer15-Oct-05 0:43 
I am writing a dilaogue based application where a memory bitmap is created and the OnPaint method does a BitBlt to the dialogue.
I can get it to work by doing an initial BitBlt at the end of the OnCreateBmp() method but I would rather trigger OnPaint() so there is no duplicate code. Several attempts at invalidating the client area haven't worked.
Any suggestions?

Elaine Rose | [Rose]

OnCreateBmp()
{
    ...
    pDC = this->GetDC();					// Get Current DC
    m_MemBmp.CreateCompatibleBitmap(pDC,	// Create a bitmap
	m_ClientRect.Width(),
	m_ClientRect.Width());
    m_MemDC.SetTextColor(0xff00);
    m_MemDC.TextOutA(33, 33, "Hello world");
}

bmp1Dlg::OnPaint()
{
    ...
    pDC->BitBlt(m_ClientRect.left, m_ClientRect.top,
        m_ClientRect.Width(),m_ClientRect.Height() ,&m_MemDC,0,0,SRCCOPY);
    CDialog::OnPaint();
    ...
}


The tigress is here Big Grin | :-D
AnswerRe: Initial OnPaint Pin
Prakash Nadar15-Oct-05 0:53
Prakash Nadar15-Oct-05 0:53 
GeneralRe: Initial OnPaint Pin
Trollslayer15-Oct-05 0:59
mentorTrollslayer15-Oct-05 0:59 
GeneralRe: Initial OnPaint Pin
Prakash Nadar15-Oct-05 6:24
Prakash Nadar15-Oct-05 6:24 
AnswerRe: Initial OnPaint Pin
S. Senthil Kumar15-Oct-05 1:02
S. Senthil Kumar15-Oct-05 1:02 
GeneralRe: Initial OnPaint Pin
Trollslayer15-Oct-05 1:16
mentorTrollslayer15-Oct-05 1:16 
AnswerRe: Initial OnPaint Pin
Tim Smith15-Oct-05 4:51
Tim Smith15-Oct-05 4:51 
GeneralRe: Initial OnPaint Pin
Trollslayer15-Oct-05 4:58
mentorTrollslayer15-Oct-05 4:58 
GeneralRe: Initial OnPaint Pin
Prakash Nadar15-Oct-05 6:22
Prakash Nadar15-Oct-05 6:22 
AnswerRe: Initial OnPaint Pin
John R. Shaw16-Oct-05 16:48
John R. Shaw16-Oct-05 16:48 
Questionabstract base class Pin
toxcct15-Oct-05 0:36
toxcct15-Oct-05 0:36 
AnswerRe: abstract base class Pin
S. Senthil Kumar15-Oct-05 0:52
S. Senthil Kumar15-Oct-05 0:52 
GeneralRe: abstract base class Pin
toxcct15-Oct-05 1:23
toxcct15-Oct-05 1:23 
QuestionRe: abstract base class Pin
toxcct15-Oct-05 1:42
toxcct15-Oct-05 1:42 
AnswerRe: abstract base class Pin
S. Senthil Kumar15-Oct-05 1:47
S. Senthil Kumar15-Oct-05 1:47 
GeneralRe: abstract base class Pin
toxcct15-Oct-05 1:55
toxcct15-Oct-05 1:55 
AnswerRe: abstract base class Pin
karmendra_js15-Oct-05 0:56
karmendra_js15-Oct-05 0:56 
QuestionCan any one help me to understand IOCP Pin
Member 168985514-Oct-05 23:49
Member 168985514-Oct-05 23:49 

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.