Click here to Skip to main content
15,919,245 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Which trackbar fired the event? Pin
clintsinger22-Oct-01 17:02
clintsinger22-Oct-01 17:02 
GeneralRe: Which trackbar fired the event? Pin
Christian Graus22-Oct-01 18:19
protectorChristian Graus22-Oct-01 18:19 
GeneralRe: Which trackbar fired the event? Pin
clintsinger24-Oct-01 6:21
clintsinger24-Oct-01 6:21 
GeneralRe: Which trackbar fired the event? Pin
Christian Graus24-Oct-01 11:22
protectorChristian Graus24-Oct-01 11:22 
Generalundeclared identifier Pin
Peter Liddle22-Oct-01 12:21
Peter Liddle22-Oct-01 12:21 
GeneralRe: undeclared identifier Pin
Christian Graus22-Oct-01 12:43
protectorChristian Graus22-Oct-01 12:43 
GeneralSynchronization objects Pin
Not Active22-Oct-01 11:03
mentorNot Active22-Oct-01 11:03 
GeneralFlicker-free drawing question Pin
Chen Venkataraman22-Oct-01 10:00
Chen Venkataraman22-Oct-01 10:00 
I've a control that is used to update real-time stock quotes. The control uses the CMemDC class to draw to avoid the flickering but i still see the control flicker. Essentially, the drawing code looks like this (borrowed the technique from Chris' Grid control)

XYZControl::OnPaint()
{
    CPaintDC dc(this); // device context for painting
	
    if (m_bDoubleBuffer)    // Use a memory DC to remove flicker
    {
        CMemDC memDC(&dc);
        OnDraw(&memDC);
    }
    else                    // Draw raw - this helps in debugging vis problems.
        OnDraw(&dc);
}

XYZControl::OnDraw(CDC* pDC)
{
    // draw code
}


One interesting thing that i noticed while debugging was that the GetClipBox() call in MemDC contructor returns a empty rectangle. Suspecting this could mean trouble? Any thoughts on what should i check/verify? Confused | :confused:

Thanks


Chen Venkataraman
GeneralRe: Flicker-free drawing question Pin
Tomasz Sowinski22-Oct-01 10:19
Tomasz Sowinski22-Oct-01 10:19 
GeneralRe: Flicker-free drawing question Pin
Chen Venkataraman22-Oct-01 11:10
Chen Venkataraman22-Oct-01 11:10 
GeneralRe: Flicker-free drawing question Pin
Tomasz Sowinski22-Oct-01 11:27
Tomasz Sowinski22-Oct-01 11:27 
GeneralRe: Flicker-free drawing question Pin
Christian Graus22-Oct-01 18:29
protectorChristian Graus22-Oct-01 18:29 
GeneralWriting a Client/Server in Visual C++ Pin
22-Oct-01 9:10
suss22-Oct-01 9:10 
GeneralRe: Writing a Client/Server in Visual C++ Pin
Matt Newman22-Oct-01 13:21
Matt Newman22-Oct-01 13:21 
GeneralHiding the main frame in mdi Pin
jangel22-Oct-01 8:51
jangel22-Oct-01 8:51 
GeneralRe: Hiding the main frame in mdi Pin
Tomasz Sowinski22-Oct-01 8:55
Tomasz Sowinski22-Oct-01 8:55 
GeneralRe: Hiding the main frame in mdi Pin
jangel22-Oct-01 10:04
jangel22-Oct-01 10:04 
GeneralRe: Hiding the main frame in mdi Pin
Tomasz Sowinski22-Oct-01 10:24
Tomasz Sowinski22-Oct-01 10:24 
GeneralRe: Hiding the main frame in mdi Pin
jangel22-Oct-01 12:37
jangel22-Oct-01 12:37 
GeneralRe: Hiding the main frame in mdi Pin
Christian Graus22-Oct-01 18:36
protectorChristian Graus22-Oct-01 18:36 
GeneralADO question ... Pin
Hadi Rezaee22-Oct-01 8:25
Hadi Rezaee22-Oct-01 8:25 
GeneralRe: ADO question ... Pin
Carlos Antollini22-Oct-01 8:47
Carlos Antollini22-Oct-01 8:47 
GeneralRe: ADO question ... Pin
Hadi Rezaee22-Oct-01 9:06
Hadi Rezaee22-Oct-01 9:06 
Generalm_pCtrlSite in Derived CButton object Pin
Derek Lakin22-Oct-01 7:03
Derek Lakin22-Oct-01 7:03 
GeneralSerialization of embedded CArray objects Pin
ASBR22-Oct-01 6:35
ASBR22-Oct-01 6:35 

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.