Click here to Skip to main content
15,915,513 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: PolyDraw - How to fill? Pin
Cedric Moonen21-Sep-10 0:02
Cedric Moonen21-Sep-10 0:02 
GeneralRe: PolyDraw - How to fill? Pin
Paulraj G21-Sep-10 0:09
Paulraj G21-Sep-10 0:09 
GeneralRe: PolyDraw - How to fill? Pin
«_Superman_»21-Sep-10 0:19
professional«_Superman_»21-Sep-10 0:19 
Questioncalendar control Pin
MKC00220-Sep-10 22:27
MKC00220-Sep-10 22:27 
AnswerRe: calendar control Pin
Kushagra Tiwari21-Sep-10 2:37
Kushagra Tiwari21-Sep-10 2:37 
Questionunresolved external symbol __imp__PlaySoundW@12 Pin
gateway2320-Sep-10 21:40
gateway2320-Sep-10 21:40 
AnswerRe: unresolved external symbol __imp__PlaySoundW@12 Pin
Niklas L20-Sep-10 21:49
Niklas L20-Sep-10 21:49 
AnswerRe: unresolved external symbol __imp__PlaySoundW@12 Pin
Cedric Moonen20-Sep-10 21:55
Cedric Moonen20-Sep-10 21:55 
GeneralRe: unresolved external symbol __imp__PlaySoundW@12 Pin
gateway2320-Sep-10 23:18
gateway2320-Sep-10 23:18 
QuestionDrawing onto a bitmap Pin
softwaremonkey20-Sep-10 20:04
softwaremonkey20-Sep-10 20:04 
AnswerRe: Drawing onto a bitmap Pin
«_Superman_»20-Sep-10 20:23
professional«_Superman_»20-Sep-10 20:23 
GeneralRe: Drawing onto a bitmap Pin
softwaremonkey20-Sep-10 20:48
softwaremonkey20-Sep-10 20:48 
AnswerRe: Drawing onto a bitmap Pin
basementman23-Sep-10 4:33
basementman23-Sep-10 4:33 
Questioncode generation failed Pin
raju_shiva20-Sep-10 19:37
raju_shiva20-Sep-10 19:37 
AnswerRe: code generation failed Pin
Niklas L20-Sep-10 20:55
Niklas L20-Sep-10 20:55 
AnswerRe: code generation failed Pin
rp_suman21-Sep-10 9:08
rp_suman21-Sep-10 9:08 
QuestionCapEditCopy and its data retrieval format. Explanation wanted. Pin
Vaclav_20-Sep-10 7:32
Vaclav_20-Sep-10 7:32 
AnswerRe: CapEditCopy and its data retrieval format. Explanation wanted. Pin
Phil J Pearson20-Sep-10 12:09
Phil J Pearson20-Sep-10 12:09 
GeneralRe: CapEditCopy and its data retrieval format. Explanation wanted. Pin
Vaclav_20-Sep-10 13:58
Vaclav_20-Sep-10 13:58 
QuestionCBitmapButton not taking keyboard inputs. Pin
Member 383463020-Sep-10 4:19
Member 383463020-Sep-10 4:19 
AnswerRe: CBitmapButton not taking keyboard inputs. [modified] Pin
Aescleal20-Sep-10 5:27
Aescleal20-Sep-10 5:27 
Is the control recieving a WM_KEYDOWN when you bash enter when the focus is on it?

From what I remember of using BS_OWNERDRAW controls years ago you have to handle the keyboard messages yourself. Unlike BS_PUSHBUTTON the control doesn't generate BN_CLICKED notifications from someone pressing return/enter or space.

My first line of enquiry would be to override OnKeyDown in the button class and see what happens. If that's called then override OnKeyUp and send the button's parent a WM_COMMAND/BN_CLICKED when the enter or space key are released.

Cheers,

Ash

modified on Monday, September 20, 2010 11:39 AM

QuestionSave web page Pin
VVVimal19-Sep-10 23:37
VVVimal19-Sep-10 23:37 
QuestionRe: Save web page Pin
CPallini19-Sep-10 23:59
mveCPallini19-Sep-10 23:59 
AnswerRe: Save web page Pin
VVVimal20-Sep-10 0:08
VVVimal20-Sep-10 0:08 
GeneralRe: Save web page Pin
«_Superman_»20-Sep-10 0:12
professional«_Superman_»20-Sep-10 0:12 

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.