Click here to Skip to main content
15,922,015 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRefreshing problem.. Pin
Neha1-Feb-02 19:04
Neha1-Feb-02 19:04 
GeneralRe: Refreshing problem.. Pin
Wolfram Steinke1-Feb-02 23:39
Wolfram Steinke1-Feb-02 23:39 
GeneralRe: Refreshing problem.. Pin
Neha2-Feb-02 1:46
Neha2-Feb-02 1:46 
GeneralRe: Refreshing problem.. Pin
Wolfram Steinke2-Feb-02 11:52
Wolfram Steinke2-Feb-02 11:52 
GeneralKinda New at this Pin
1-Feb-02 17:17
suss1-Feb-02 17:17 
GeneralRe: Kinda New at this Pin
Rick York1-Feb-02 18:06
mveRick York1-Feb-02 18:06 
QuestionIs it possible to use multiple CDC's?? Pin
Jay Beckert1-Feb-02 17:18
Jay Beckert1-Feb-02 17:18 
AnswerRe: Is it possible to use multiple CDC's?? Pin
Paul M Watt1-Feb-02 21:37
mentorPaul M Watt1-Feb-02 21:37 
A CDC, or a Device Context, really only acts like a surface for you to draw on, it is not really meant for you to interact with. If what you are doing is all in the context of one window here is what I would suggest.

1. you will only use the one CDC that you receive from the client window where your display will go. All of your painting will be done on that DC.

2. All of your hidden regions could be represented by HRGN objects created with the region functions, CreateRectRgn, CreateEllipseRgn and so on, there are between 5 and 10 different ways to create regions.

3. In your window handler you can handle the WM_MOUSEMOVE and WM_LBUTTONDOWN messages to determine if the user is clicking in one of your hidden regions. To test if a certain point is in one of your regions you can use the PtInRegion function.

If you need more information or this solution will not work for you please write back.
GeneralRe: Is it possible to use multiple CDC's?? Pin
Jay Beckert19-Jun-02 14:24
Jay Beckert19-Jun-02 14:24 
Questionwhat is wrong? Pin
1-Feb-02 16:00
suss1-Feb-02 16:00 
AnswerRe: what is wrong? Pin
Michael Dunn1-Feb-02 16:16
sitebuilderMichael Dunn1-Feb-02 16:16 
GeneralRe: what is wrong? Pin
Le centriste4-Feb-02 4:20
Le centriste4-Feb-02 4:20 
GeneralList Control Space Bug Pin
Swinefeaster1-Feb-02 14:10
Swinefeaster1-Feb-02 14:10 
QuestionClass prototype? Pin
1-Feb-02 14:05
suss1-Feb-02 14:05 
AnswerRe: Class prototype? Pin
Swinefeaster1-Feb-02 14:14
Swinefeaster1-Feb-02 14:14 
GeneralRe: Class prototype? Pin
Tim Smith1-Feb-02 14:40
Tim Smith1-Feb-02 14:40 
GeneralRe: Class prototype? Pin
Tantalus1-Feb-02 16:30
Tantalus1-Feb-02 16:30 
GeneralRe: Class prototype? Pin
Swinefeaster1-Feb-02 16:37
Swinefeaster1-Feb-02 16:37 
GeneralSort of Serialization Pin
1-Feb-02 14:00
suss1-Feb-02 14:00 
GeneralRe: Sort of Serialization Pin
Swinefeaster1-Feb-02 14:03
Swinefeaster1-Feb-02 14:03 
GeneralRe: Sort of Serialization Pin
1-Feb-02 14:44
suss1-Feb-02 14:44 
GeneralRe: Sort of Serialization Pin
Matt Gullett1-Feb-02 14:52
Matt Gullett1-Feb-02 14:52 
GeneralCMutex Pin
Cathy1-Feb-02 13:55
Cathy1-Feb-02 13:55 
GeneralRe: CMutex Pin
Rick York1-Feb-02 18:03
mveRick York1-Feb-02 18:03 
GeneralRe: CMutex Pin
Cathy1-Feb-02 20:39
Cathy1-Feb-02 20:39 

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.