Click here to Skip to main content
15,920,596 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to add a member variable of one class to another class Pin
JerzyPeter7-Aug-01 3:50
JerzyPeter7-Aug-01 3:50 
GeneralRe: How to add a member variable of one class to another class Pin
User 98857-Aug-01 5:42
User 98857-Aug-01 5:42 
GeneralRe: How to add a member variable of one class to another class Pin
User 98857-Aug-01 5:42
User 98857-Aug-01 5:42 
GeneralRe: How to add a member variable of one class to another class Pin
JerzyPeter7-Aug-01 6:39
JerzyPeter7-Aug-01 6:39 
QuestionHow can I use a CRgn to draw on a CBitmap? Pin
Craig Miller6-Aug-01 11:08
Craig Miller6-Aug-01 11:08 
AnswerRe: How can I use a CRgn to draw on a CBitmap? Pin
Baafie6-Aug-01 12:13
Baafie6-Aug-01 12:13 
GeneralRe: How can I use a CRgn to draw on a CBitmap? Pin
Craig Miller6-Aug-01 12:27
Craig Miller6-Aug-01 12:27 
GeneralRe: How can I use a CRgn to draw on a CBitmap? Pin
Christian Graus6-Aug-01 12:39
protectorChristian Graus6-Aug-01 12:39 
There is a much better way to deal with this. Create a mask bitmap that is the same dimensions and marks out your regions in different colours. Use GetPixel to find out the colour of this second bitmap at your mouse position and viola - you have a match. You could create constant COLORREFs like this

const COLORREF MASK_HELP = RGB(255,0,0);
const COLORREF MASK_ABOUT = RGB(0,255,0);

Then you can grab your colour and do a switch statement that uses meaningful values instead of assorted colours.


Christian

#include "std_disclaimer.h"

The careful application of terror is also a form of communication.

Eagles may soar, but weasels don't get sucked into jet engines.
GeneralRe: How can I use a CRgn to draw on a CBitmap? Pin
Craig Miller6-Aug-01 12:45
Craig Miller6-Aug-01 12:45 
GeneralRe: How can I use a CRgn to draw on a CBitmap? Pin
Christian Graus6-Aug-01 12:48
protectorChristian Graus6-Aug-01 12:48 
GeneralRe: How can I use a CRgn to draw on a CBitmap? Pin
Craig Miller6-Aug-01 12:57
Craig Miller6-Aug-01 12:57 
GeneralRe: How can I use a CRgn to draw on a CBitmap? Pin
Christian Graus6-Aug-01 13:23
protectorChristian Graus6-Aug-01 13:23 
GeneralRe: How can I use a CRgn to draw on a CBitmap? Pin
Craig Miller6-Aug-01 13:30
Craig Miller6-Aug-01 13:30 
GeneralRe: How can I use a CRgn to draw on a CBitmap? Pin
Christian Graus6-Aug-01 13:32
protectorChristian Graus6-Aug-01 13:32 
GeneralIexplorer Pin
calebcohoon6-Aug-01 10:34
calebcohoon6-Aug-01 10:34 
GeneralRe: Iexplorer Pin
Not Active6-Aug-01 10:43
mentorNot Active6-Aug-01 10:43 
GeneralSetting a value and reading values in registry Pin
RobJones6-Aug-01 10:14
RobJones6-Aug-01 10:14 
GeneralRe: Setting a value and reading values in registry Pin
Not Active6-Aug-01 10:36
mentorNot Active6-Aug-01 10:36 
GeneralRe: Setting a value and reading values in registry Pin
RobJones6-Aug-01 11:56
RobJones6-Aug-01 11:56 
GeneralDebug v. Release Pin
flurinator6-Aug-01 9:51
flurinator6-Aug-01 9:51 
GeneralRe: Debug v. Release Pin
Baafie6-Aug-01 13:32
Baafie6-Aug-01 13:32 
GeneralRe: Debug v. Release Pin
flurinator6-Aug-01 20:04
flurinator6-Aug-01 20:04 
GeneralRe: Debug v. Release Pin
flurinator6-Aug-01 20:04
flurinator6-Aug-01 20:04 
GeneralRe: Debug v. Release Pin
9-Sep-01 1:04
suss9-Sep-01 1:04 
GeneralRe: Debug v. Release Pin
Bret Faller7-Aug-01 9:14
Bret Faller7-Aug-01 9:14 

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.