Click here to Skip to main content
16,008,942 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalprocess list Pin
ernst.maurer13-Mar-02 18:59
ernst.maurer13-Mar-02 18:59 
GeneralRe: process list Pin
Lim Bio Liong14-Mar-02 16:33
Lim Bio Liong14-Mar-02 16:33 
GeneralFlicker with CMemDC Pin
alex.barylski13-Mar-02 18:04
alex.barylski13-Mar-02 18:04 
GeneralRe: Flicker with CMemDC Pin
Shog913-Mar-02 19:13
sitebuilderShog913-Mar-02 19:13 
GeneralRe: Flicker with CMemDC Pin
alex.barylski13-Mar-02 19:46
alex.barylski13-Mar-02 19:46 
GeneralRe: Flicker with CMemDC Pin
Paul M Watt13-Mar-02 20:07
mentorPaul M Watt13-Mar-02 20:07 
GeneralRe: Flicker with CMemDC Pin
alex.barylski13-Mar-02 20:21
alex.barylski13-Mar-02 20:21 
GeneralRe: Flicker with CMemDC Pin
Paul M Watt13-Mar-02 21:44
mentorPaul M Watt13-Mar-02 21:44 
If you initialize your DC like this in NC paint, I believe that you will have more luck.

HDC hdc;
hdc = GetDCEx(hwnd, (HRGN)wParam, DCX_WINDOW|DCX_INTERSECTRGN);

// Paint into this DC

ReleaseDC(hwnd, hdc);


This will ultimately accomplish the same thing, but then your clipping region is used up, and if you subclassed your window, you could have issues in the future:

CWindowDC dc;

dc.SelectClipRgn((HRGN)wParam);

// Paint into this DC

GeneralRe: Flicker with CMemDC Pin
alex.barylski13-Mar-02 22:54
alex.barylski13-Mar-02 22:54 
GeneralRe: Flicker with CMemDC Pin
Michel13-Mar-02 20:31
Michel13-Mar-02 20:31 
GeneralVC++ Runtimes Pin
Richard Lewis13-Mar-02 17:47
Richard Lewis13-Mar-02 17:47 
GeneralRe: VC++ Runtimes Pin
Nish Nishant13-Mar-02 18:16
sitebuilderNish Nishant13-Mar-02 18:16 
QuestionCan u help me!!! Pin
Davidlou13-Mar-02 17:30
Davidlou13-Mar-02 17:30 
AnswerRe: Can u help me!!! Pin
alex.barylski13-Mar-02 17:53
alex.barylski13-Mar-02 17:53 
GeneralRe: Can u help me!!! Pin
Jon Hulatt13-Mar-02 22:20
Jon Hulatt13-Mar-02 22:20 
GeneralRe: Can u help me!!! Pin
alex.barylski13-Mar-02 22:52
alex.barylski13-Mar-02 22:52 
AnswerRe: Can u help me!!! Pin
Jon Hulatt13-Mar-02 22:18
Jon Hulatt13-Mar-02 22:18 
Generalbmp Pin
13-Mar-02 16:20
suss13-Mar-02 16:20 
GeneralRe: bmp Pin
alex.barylski13-Mar-02 17:50
alex.barylski13-Mar-02 17:50 
QuestionWho have a sample VC "Gina.dll" project? Pin
13-Mar-02 15:26
suss13-Mar-02 15:26 
AnswerRe: Who have a sample VC "Gina.dll" project? Pin
Derek Waters13-Mar-02 16:25
Derek Waters13-Mar-02 16:25 
Generallcase in c++ Pin
SilverShalkin13-Mar-02 14:41
SilverShalkin13-Mar-02 14:41 
GeneralRe: lcase in c++ Pin
alex.barylski13-Mar-02 14:51
alex.barylski13-Mar-02 14:51 
GeneralRe: lcase in c++ Pin
Joaquín M López Muñoz13-Mar-02 20:09
Joaquín M López Muñoz13-Mar-02 20:09 
GeneralRe: lcase in c++ Pin
Tim Smith14-Mar-02 2:17
Tim Smith14-Mar-02 2:17 

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.