Click here to Skip to main content
13,831,735 members

C / C++ / MFC

 
GeneralRe: Creating a DLL with Web Browser Embedded Pin
Don Guy18-Sep-13 5:15
memberDon Guy18-Sep-13 5:15 
GeneralRe: Creating a DLL with Web Browser Embedded Pin
Richard MacCutchan18-Sep-13 5:33
protectorRichard MacCutchan18-Sep-13 5:33 
GeneralRe: Creating a DLL with Web Browser Embedded Pin
Don Guy18-Sep-13 7:04
memberDon Guy18-Sep-13 7:04 
GeneralRe: Creating a DLL with Web Browser Embedded Pin
Richard MacCutchan18-Sep-13 7:31
protectorRichard MacCutchan18-Sep-13 7:31 
GeneralRe: Creating a DLL with Web Browser Embedded Pin
Don Guy18-Sep-13 7:52
memberDon Guy18-Sep-13 7:52 
GeneralRe: Creating a DLL with Web Browser Embedded Pin
Richard MacCutchan18-Sep-13 7:57
protectorRichard MacCutchan18-Sep-13 7:57 
AnswerRe: Creating a DLL with Web Browser Embedded Pin
jschell19-Sep-13 12:19
memberjschell19-Sep-13 12:19 
QuestionUnable to set focus in CPropertyPage in MFC. update solved?? Pin
Vaclav_17-Sep-13 6:05
memberVaclav_17-Sep-13 6:05 
I am unable to set focus to CProperyPage CEdit control using OnSetActive:


BOOL C_CommPropertyPage2::OnSetActive()
{
CEdit* pBoxOne;
pBoxOne = (CEdit*) GetDlgItem(IDC_EDIT1);
pBoxOne->SetFocus();

return CPropertyPage::OnSetActive(); // added
}


I am able to TAB to the controls and I have tried both value and control without success.

Any help would be appreciated.
Cheers Vaclav

Here is a workaround.
I initially fill the edit boxes with default values. When I reset them, in my case to empty text, I can set focus using the above code. I can live with that.

-- modified 17-Sep-13 13:34pm.
QuestionRe: Unable to set focus in CPropertyPage in MFC. Pin
jeron117-Sep-13 7:27
memberjeron117-Sep-13 7:27 
AnswerRe: Unable to set focus in CPropertyPage in MFC. Pin
Vaclav_17-Sep-13 8:08
memberVaclav_17-Sep-13 8:08 
QuestionRe: Unable to set focus in CPropertyPage in MFC. update solved?? Pin
David Crow17-Sep-13 8:51
memberDavid Crow17-Sep-13 8:51 
AnswerRe: Unable to set focus in CPropertyPage in MFC. update solved?? Pin
Vaclav_17-Sep-13 10:54
memberVaclav_17-Sep-13 10:54 
QuestionRe: Unable to set focus in CPropertyPage in MFC. update solved?? Pin
David Crow18-Sep-13 3:50
memberDavid Crow18-Sep-13 3:50 
AnswerRe: Unable to set focus in CPropertyPage in MFC. update solved?? Pin
Vaclav_18-Sep-13 8:50
memberVaclav_18-Sep-13 8:50 
QuestionOutlook Addins Pin
john563216-Sep-13 23:55
memberjohn563216-Sep-13 23:55 
AnswerRe: Outlook Addins Pin
Richard MacCutchan17-Sep-13 1:31
protectorRichard MacCutchan17-Sep-13 1:31 
Questionhow to lock function? Pin
JoneLe8616-Sep-13 19:09
memberJoneLe8616-Sep-13 19:09 
AnswerRe: how to lock function? Pin
Richard MacCutchan16-Sep-13 21:41
protectorRichard MacCutchan16-Sep-13 21:41 
AnswerRe: how to lock function? Pin
CPallini16-Sep-13 22:18
mveCPallini16-Sep-13 22:18 
AnswerRe: how to lock function? Pin
Freak3016-Sep-13 23:06
memberFreak3016-Sep-13 23:06 
GeneralRe: how to lock function? Pin
pasztorpisti17-Sep-13 1:27
professionalpasztorpisti17-Sep-13 1:27 
QuestionWhat does it mean when...... Pin
Richard Andrew x6416-Sep-13 11:42
professionalRichard Andrew x6416-Sep-13 11:42 
AnswerRe: What does it mean when...... Pin
Graham Breach16-Sep-13 12:26
memberGraham Breach16-Sep-13 12:26 
GeneralRe: What does it mean when...... Pin
Richard Andrew x6416-Sep-13 12:51
professionalRichard Andrew x6416-Sep-13 12:51 
QuestionFeedback appreciated Pin
Marco Bertschi16-Sep-13 1:15
protectorMarco Bertschi16-Sep-13 1:15 

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.


Advertise | Privacy | Cookies | Terms of Service
Web03 | 2.8.190114.1 | Last Updated 18 Jan 2019
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid