Click here to Skip to main content
15,885,546 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: add message to jpeg file Pin
Chris Losinger12-Oct-05 9:53
professionalChris Losinger12-Oct-05 9:53 
QuestionSetup a Default Button Pin
Ian Bowler12-Oct-05 8:14
Ian Bowler12-Oct-05 8:14 
QuestionRe: Setup a Default Button Pin
David Crow12-Oct-05 9:55
David Crow12-Oct-05 9:55 
AnswerRe: Setup a Default Button Pin
Ian Bowler12-Oct-05 11:07
Ian Bowler12-Oct-05 11:07 
GeneralRe: Setup a Default Button Pin
David Crow13-Oct-05 2:55
David Crow13-Oct-05 2:55 
AnswerRe: Setup a Default Button Pin
vikas amin12-Oct-05 22:33
vikas amin12-Oct-05 22:33 
AnswerRe: Setup a Default Button Pin
ThatsAlok13-Oct-05 1:59
ThatsAlok13-Oct-05 1:59 
GeneralRe: Setup a Default Button Pin
Ian Bowler13-Oct-05 5:26
Ian Bowler13-Oct-05 5:26 
Yes, I am dynamically creating the button. I tried using the BS_DEFPUSHBUTTON style but that did not work. The button that I'm wanting to set as the default is in a hosted ActiveX control. Could that be part of the problem? The hosted ActiveX control's UI is built on CView-derived class. This class owns a CWnd-derived class, which owns the CButton that I want to make default. When the CWnd-derived object or one of its child objects has the focus, I want the ENTER key to activate the CButton.

Here is a diagram that I hope will help:

--------------------------------------------------------------------------------------
Application
------------------------------------------------------
| ActiveX control
| ------------------------------------------
| | CView
| | ---------------------------------
| | | CWnd
| | | ---------- When this CWnd-derive class or any of its child MFC
| | | |CButton | controls have focus, I want the CButton to get
| | | ---------- pushed when the ENTER key is pressed.
| | ---------------------------------
| |
| ------------------------------------------
|
------------------------------------------------------

--------------------------------------------------------------------------------------

Thanks again for taking the time to help!


-- modified at 11:27 Thursday 13th October, 2005
QuestionInvisible temporary Pin
Bob Stanneveld12-Oct-05 6:47
Bob Stanneveld12-Oct-05 6:47 
QuestionSerial Comms Help Please! Pin
Member 138216012-Oct-05 6:34
Member 138216012-Oct-05 6:34 
AnswerRe: Serial Comms Help Please! Pin
Rage12-Oct-05 7:12
professionalRage12-Oct-05 7:12 
Questionproblems with WinINet.h with visual studio 2003 Pin
brwoodru12-Oct-05 6:18
brwoodru12-Oct-05 6:18 
AnswerRe: problems with WinINet.h with visual studio 2003 Pin
prasad_som12-Oct-05 21:24
prasad_som12-Oct-05 21:24 
QuestionProblems Bringing Active X Control (.ocx) Into An Application Pin
johndavis12-Oct-05 6:06
johndavis12-Oct-05 6:06 
QuestionDo I always need a function that's executed by only one thread to initialize synchronization objetcs? Pin
Federico Milano12-Oct-05 5:55
Federico Milano12-Oct-05 5:55 
AnswerRe: Do I always need a function that's executed by only one thread to initialize synchronization objetcs? Pin
Rage12-Oct-05 7:05
professionalRage12-Oct-05 7:05 
GeneralRe: Do I always need a function that's executed by only one thread to initialize synchronization objetcs? Pin
Federico Milano12-Oct-05 7:38
Federico Milano12-Oct-05 7:38 
GeneralRe: Do I always need a function that's executed by only one thread to initialize synchronization objetcs? Pin
Blake V. Miller13-Oct-05 18:16
Blake V. Miller13-Oct-05 18:16 
GeneralRe: Do I always need a function that's executed by only one thread to initialize synchronization objetcs? Pin
Federico Milano14-Oct-05 2:20
Federico Milano14-Oct-05 2:20 
GeneralRe: Do I always need a function that's executed by only one thread to initialize synchronization objetcs? Pin
Blake V. Miller24-Nov-05 9:09
Blake V. Miller24-Nov-05 9:09 
QuestionExecute and retrieve data from console Pin
schemp9812-Oct-05 5:11
schemp9812-Oct-05 5:11 
QuestionRe: Execute and retrieve data from console Pin
David Crow12-Oct-05 6:22
David Crow12-Oct-05 6:22 
AnswerRe: Execute and retrieve data from console Pin
schemp9812-Oct-05 7:09
schemp9812-Oct-05 7:09 
GeneralRe: Execute and retrieve data from console Pin
Rage12-Oct-05 7:26
professionalRage12-Oct-05 7:26 
GeneralRe: Execute and retrieve data from console Pin
David Crow12-Oct-05 7:33
David Crow12-Oct-05 7:33 

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.