Click here to Skip to main content
15,913,773 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Spliiting a DWORD Pin
Ben Aldhouse8-Sep-10 21:45
Ben Aldhouse8-Sep-10 21:45 
GeneralRe: Spliiting a DWORD Pin
Richard MacCutchan8-Sep-10 23:03
mveRichard MacCutchan8-Sep-10 23:03 
GeneralRe: Spliiting a DWORD Pin
normanS11-Sep-10 18:17
normanS11-Sep-10 18:17 
GeneralRe: Spliiting a DWORD Pin
Richard MacCutchan11-Sep-10 21:37
mveRichard MacCutchan11-Sep-10 21:37 
GeneralRe: Spliiting a DWORD Pin
Ben Aldhouse16-Sep-10 21:52
Ben Aldhouse16-Sep-10 21:52 
GeneralRe: Spliiting a DWORD Pin
Richard MacCutchan16-Sep-10 22:37
mveRichard MacCutchan16-Sep-10 22:37 
AnswerRe: Spliiting a DWORD Pin
Aescleal8-Sep-10 23:24
Aescleal8-Sep-10 23:24 
QuestionCrect pass to CWnd, possible? Pin
loid grey manuel8-Sep-10 17:42
loid grey manuel8-Sep-10 17:42 
hi guys, i have problem on my GDI drawing (car) when i try to add a button control or any other control, i lose the focus of my drawing.

here is the scenario,

when i press SPACE my car moves forward frm left to right.

but when i tried adding a button for colorPicker purpose, mar car won't move when i try to press SPACE on my ketborad.. tried to remove the button it worked fine.

how do i set the focus to my GDI car drawing after selecting a color of the car?
or should i say what code to use?

i tried to use
CWnd* pWnd = myCar.rec;
pWnd->SetFocus();

obviously it's error

\lg.manuel\daily quests\gdicarsample\gdicarsample\gdicarsampledlg.cpp(115) : error C2440: 'initializing' : cannot convert from 'CRect' to 'CWnd *'
1>        No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called


since car is Crect i can't pass it to CWnd to set the focus,

thanks ahead guys,
AnswerRe: Crect pass to CWnd, possible? Pin
Cool_Dev8-Sep-10 18:26
Cool_Dev8-Sep-10 18:26 
GeneralRe: Crect pass to CWnd, possible? Pin
loid grey manuel8-Sep-10 19:10
loid grey manuel8-Sep-10 19:10 
GeneralRe: Crect pass to CWnd, possible? Pin
Cool_Dev8-Sep-10 19:47
Cool_Dev8-Sep-10 19:47 
GeneralRe: Crect pass to CWnd, possible? Pin
loid grey manuel8-Sep-10 20:45
loid grey manuel8-Sep-10 20:45 
GeneralRe: Crect pass to CWnd, possible? Pin
Cool_Dev8-Sep-10 20:50
Cool_Dev8-Sep-10 20:50 
GeneralRe: Crect pass to CWnd, possible? [RESOLVED] Pin
loid grey manuel8-Sep-10 21:23
loid grey manuel8-Sep-10 21:23 
GeneralRe: Crect pass to CWnd, possible? Pin
Cool_Dev8-Sep-10 21:56
Cool_Dev8-Sep-10 21:56 
GeneralRe: Crect pass to CWnd, possible? Pin
loid grey manuel13-Sep-10 18:00
loid grey manuel13-Sep-10 18:00 
Questionfstream object as either unicode or non-unicode Pin
Danzy838-Sep-10 14:02
Danzy838-Sep-10 14:02 
AnswerRe: fstream object as either unicode or non-unicode Pin
Richard Andrew x648-Sep-10 15:36
professionalRichard Andrew x648-Sep-10 15:36 
GeneralRe: fstream object as either unicode or non-unicode Pin
CPallini8-Sep-10 21:03
mveCPallini8-Sep-10 21:03 
AnswerRe: fstream object as either unicode or non-unicode Pin
Aescleal8-Sep-10 21:35
Aescleal8-Sep-10 21:35 
GeneralRe: fstream object as either unicode or non-unicode Pin
Danzy838-Sep-10 22:07
Danzy838-Sep-10 22:07 
GeneralRe: fstream object as either unicode or non-unicode Pin
Aescleal8-Sep-10 23:12
Aescleal8-Sep-10 23:12 
GeneralRe: fstream object as either unicode or non-unicode Pin
Niklas L9-Sep-10 1:24
Niklas L9-Sep-10 1:24 
QuestionMoving a dialog box that you do not create [Solved] Pin
pjdriverdude8-Sep-10 8:35
pjdriverdude8-Sep-10 8:35 
AnswerRe: Moving a dialog box that you do not create Pin
Code-o-mat8-Sep-10 8:56
Code-o-mat8-Sep-10 8:56 

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.