Click here to Skip to main content
15,113,873 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C2512: no appropriate default constructor available Pin
CPallini27-Apr-10 12:45
mveCPallini27-Apr-10 12:45 
AnswerRe: C2512: no appropriate default constructor available Pin
CPallini27-Apr-10 12:42
mveCPallini27-Apr-10 12:42 
AnswerRe: C2512: no appropriate default constructor available Pin
Nisamudheen27-Apr-10 17:52
MemberNisamudheen27-Apr-10 17:52 
GeneralRe: C2512: no appropriate default constructor available Pin
Manfr3d28-Apr-10 3:03
MemberManfr3d28-Apr-10 3:03 
GeneralRe: C2512: no appropriate default constructor available Pin
Nisamudheen5-May-10 17:42
MemberNisamudheen5-May-10 17:42 
Questioncustom button or graphic with multi select points Pin
Kyle P27-Apr-10 7:28
MemberKyle P27-Apr-10 7:28 
AnswerRe: custom button or graphic with multi select points Pin
David Crow27-Apr-10 8:48
MemberDavid Crow27-Apr-10 8:48 
AnswerRe: custom button or graphic with multi select points [modified] Pin
Rozis28-Apr-10 15:27
MemberRozis28-Apr-10 15:27 
What i would do:

- Create a bitmap of a car.
- define rectangles where the user may click on. Save those rectangles (origins and sizes) in an array or file
- run the program and measure its screen-size
- calculate the difference in size of the screen and the bitmap in a ratio
- read in the bitmap and put it on screen. Stretch it when needed (use StretchBlt() ?)
- read in the rectangles
- When stretched multiply all coords of the rectangles with the ratio.
- program the actions
- Monitor the mouse up messages: when the mouse is in one of the rectangles, invoke the corresponding action.

ready...

If you still have time over:
- take the bitmap and cut out every rectangle, colorize it a bit and save it as a new bitmap. Now every rectangle has a (sub)bitmap that can be displayed while the mouse hoovers over the rectangle (you'll need to monitor mouse moves also) ..

Rozis

modified on Wednesday, April 28, 2010 8:38 PM

QuestionUnit testing for GUI(VC++) Pin
Super Hornet27-Apr-10 4:48
MemberSuper Hornet27-Apr-10 4:48 
AnswerRe: Unit testing for GUI(VC++) Pin
Tarakeshwar Reddy27-Apr-10 8:31
professionalTarakeshwar Reddy27-Apr-10 8:31 
QuestionDisabling Resizing. Pin
Randal Vance Cunanan27-Apr-10 4:44
MemberRandal Vance Cunanan27-Apr-10 4:44 
AnswerRe: Disabling Resizing. Pin
David Crow27-Apr-10 5:03
MemberDavid Crow27-Apr-10 5:03 
GeneralRe: Disabling Resizing. Pin
Randal Vance Cunanan27-Apr-10 5:45
MemberRandal Vance Cunanan27-Apr-10 5:45 
QuestionList view column header name Pin
arun_pk27-Apr-10 1:41
Memberarun_pk27-Apr-10 1:41 
AnswerRe: List view column header name Pin
Code-o-mat27-Apr-10 1:46
MemberCode-o-mat27-Apr-10 1:46 
GeneralRe: List view column header name Pin
arun_pk27-Apr-10 2:56
Memberarun_pk27-Apr-10 2:56 
GeneralRe: List view column header name Pin
Code-o-mat27-Apr-10 2:59
MemberCode-o-mat27-Apr-10 2:59 
GeneralRe: List view column header name Pin
arun_pk27-Apr-10 3:51
Memberarun_pk27-Apr-10 3:51 
GeneralRe: List view column header name Pin
Code-o-mat27-Apr-10 3:54
MemberCode-o-mat27-Apr-10 3:54 
QuestionSize of Date/TimePicker Pin
Xerantes27-Apr-10 0:55
MemberXerantes27-Apr-10 0:55 
QuestionRe: Size of Date/TimePicker Pin
David Crow27-Apr-10 3:51
MemberDavid Crow27-Apr-10 3:51 
AnswerRe: Size of Date/TimePicker Pin
Xerantes27-Apr-10 4:29
MemberXerantes27-Apr-10 4:29 
GeneralRe: Size of Date/TimePicker Pin
David Crow27-Apr-10 4:34
MemberDavid Crow27-Apr-10 4:34 
AnswerRe: Size of Date/TimePicker Pin
Xerantes27-Apr-10 20:32
MemberXerantes27-Apr-10 20:32 
GeneralRe: Size of Date/TimePicker Pin
David Crow28-Apr-10 3:16
MemberDavid Crow28-Apr-10 3:16 

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.