Click here to Skip to main content
15,903,175 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to disable toolbar Pin
Max++21-Nov-07 15:34
Max++21-Nov-07 15:34 
AnswerRe: How to disable toolbar Pin
Paresh Chitte21-Nov-07 17:26
Paresh Chitte21-Nov-07 17:26 
QuestionHow to change the property of a modem connection in WINXP?(Problem with RAS) Pin
hizfp21-Nov-07 15:00
hizfp21-Nov-07 15:00 
AnswerRe: How to change the property of a modem connection in WINXP?(Problem with RAS) Pin
hizfp22-Nov-07 16:15
hizfp22-Nov-07 16:15 
QuestionPrint Edit control!!! Pin
Gofur Halmurat21-Nov-07 8:53
Gofur Halmurat21-Nov-07 8:53 
AnswerRe: Print Edit control!!! Pin
bob1697221-Nov-07 9:19
bob1697221-Nov-07 9:19 
AnswerRe: Print Edit control!!! Pin
Hamid_RT21-Nov-07 19:05
Hamid_RT21-Nov-07 19:05 
QuestionWhy do my Controls flicker ? (src incl.) Pin
abiemann21-Nov-07 7:44
abiemann21-Nov-07 7:44 
In my VS8 MFC Dialog exploratory-app, the listbox and OK buttons flicker. I've tried the Double Buffer code (http://www.codeproject.com/bitmap/drawing_without_flicker.asp[^]) like this:

void CFlickerTestDlg::OnPaint()<br />
{<br />
    CPaintDC dc(this); // device context for painting<br />
<br />
    CRect rcClient;		<br />
    GetClientRect(rcClient);	// See Note 1<br />
<br />
    CDC MemDC,*pDC;<br />
    CBitmap MemBitmap;<br />
<br />
    pDC = this->GetDC();         // Get Current DC<br />
    MemDC.CreateCompatibleDC(pDC);<br />
    MemBitmap.CreateCompatibleBitmap(pDC,rcClient.right,rcClient.bottom);<br />
<br />
    CBitmap *pOldBitmap = MemDC.SelectObject(&m_BmpTarget);<br />
    //CBrush bkBrush(HS_FDIAGONAL,RGB(0,rand()%255,0));	// See Note 2<br />
    //MemDC.FillRect(rcClient,&bkBrush);<br />
<br />
    pDC->BitBlt(0,0,rcClient.right,rcClient.bottom,&MemDC,0,0,SRCCOPY);	//See Note 3<br />
    MemDC.SelectObject(pOldBitmap);<br />
}


but that didn't help, the listbox and OK buttons still flicker.
(also, I don't understand why my static image is covered up by some grey layer - but my main priority is the annoying flicker)

I've uploaded my project (255KB) here in a .zip:
http://www.webfilehost.com/?mode=viewupload&id=4066339[^]
There's a countdown timer on the bottom-right of the page that changes to a download link (I don't have any online webspace to share files so I had to resort to one of these free sharing services)


I'd be SO grateful for any help
AnswerRe: Why do my Controls flicker ? (src incl.) Pin
Mark Salsbery21-Nov-07 9:49
Mark Salsbery21-Nov-07 9:49 
QuestionProject cache file of 42meg - deleting/denying Pin
syscwl21-Nov-07 4:41
syscwl21-Nov-07 4:41 
Generaltypedef tweak Pin
LiYS21-Nov-07 4:28
LiYS21-Nov-07 4:28 
GeneralRe: typedef tweak Pin
led mike21-Nov-07 4:40
led mike21-Nov-07 4:40 
GeneralRe: typedef tweak Pin
jhwurmbach21-Nov-07 6:15
jhwurmbach21-Nov-07 6:15 
GeneralRe: typedef tweak Pin
led mike21-Nov-07 6:33
led mike21-Nov-07 6:33 
GeneralRe: typedef tweak Pin
jhwurmbach21-Nov-07 6:37
jhwurmbach21-Nov-07 6:37 
GeneralRe: typedef tweak Pin
Mark Salsbery21-Nov-07 7:00
Mark Salsbery21-Nov-07 7:00 
GeneralRe: typedef tweak Pin
led mike21-Nov-07 9:01
led mike21-Nov-07 9:01 
GeneralRe: typedef tweak Pin
Mark Salsbery21-Nov-07 6:57
Mark Salsbery21-Nov-07 6:57 
AnswerRe: typedef tweak Pin
Nathan Holt at EMOM21-Nov-07 10:49
Nathan Holt at EMOM21-Nov-07 10:49 
GeneralRe: typedef tweak Pin
LiYS21-Nov-07 17:41
LiYS21-Nov-07 17:41 
QuestionDoes it take much time to do such a user interface? Pin
followait21-Nov-07 4:24
followait21-Nov-07 4:24 
AnswerRe: Does it take much time to do such a user interface? Pin
led mike21-Nov-07 4:35
led mike21-Nov-07 4:35 
GeneralRe: Does it take much time to do such a user interface? Pin
followait21-Nov-07 4:38
followait21-Nov-07 4:38 
GeneralRe: Does it take much time to do such a user interface? Pin
toxcct21-Nov-07 4:45
toxcct21-Nov-07 4:45 
JokeRe: Does it take much time to do such a user interface? Pin
Cedric Moonen21-Nov-07 4:47
Cedric Moonen21-Nov-07 4:47 

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.