Click here to Skip to main content
15,886,026 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Creating a DLL with Web Browser Embedded Pin
Don Guy18-Sep-13 4:15
Don Guy18-Sep-13 4:15 
GeneralRe: Creating a DLL with Web Browser Embedded Pin
Richard MacCutchan18-Sep-13 4:33
mveRichard MacCutchan18-Sep-13 4:33 
GeneralRe: Creating a DLL with Web Browser Embedded Pin
Don Guy18-Sep-13 6:04
Don Guy18-Sep-13 6:04 
GeneralRe: Creating a DLL with Web Browser Embedded Pin
Richard MacCutchan18-Sep-13 6:31
mveRichard MacCutchan18-Sep-13 6:31 
GeneralRe: Creating a DLL with Web Browser Embedded Pin
Don Guy18-Sep-13 6:52
Don Guy18-Sep-13 6:52 
GeneralRe: Creating a DLL with Web Browser Embedded Pin
Richard MacCutchan18-Sep-13 6:57
mveRichard MacCutchan18-Sep-13 6:57 
AnswerRe: Creating a DLL with Web Browser Embedded Pin
jschell19-Sep-13 11:19
jschell19-Sep-13 11:19 
QuestionUnable to set focus in CPropertyPage in MFC. update solved?? Pin
Vaclav_17-Sep-13 5:05
Vaclav_17-Sep-13 5: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 6:27
jeron117-Sep-13 6:27 
AnswerRe: Unable to set focus in CPropertyPage in MFC. Pin
Vaclav_17-Sep-13 7:08
Vaclav_17-Sep-13 7:08 
QuestionRe: Unable to set focus in CPropertyPage in MFC. update solved?? Pin
David Crow17-Sep-13 7:51
David Crow17-Sep-13 7:51 
AnswerRe: Unable to set focus in CPropertyPage in MFC. update solved?? Pin
Vaclav_17-Sep-13 9:54
Vaclav_17-Sep-13 9:54 
QuestionRe: Unable to set focus in CPropertyPage in MFC. update solved?? Pin
David Crow18-Sep-13 2:50
David Crow18-Sep-13 2:50 
AnswerRe: Unable to set focus in CPropertyPage in MFC. update solved?? Pin
Vaclav_18-Sep-13 7:50
Vaclav_18-Sep-13 7:50 
QuestionOutlook Addins Pin
john563216-Sep-13 22:55
john563216-Sep-13 22:55 
AnswerRe: Outlook Addins Pin
Richard MacCutchan17-Sep-13 0:31
mveRichard MacCutchan17-Sep-13 0:31 
Questionhow to lock function? Pin
JoneLe8616-Sep-13 18:09
JoneLe8616-Sep-13 18:09 
AnswerRe: how to lock function? Pin
Richard MacCutchan16-Sep-13 20:41
mveRichard MacCutchan16-Sep-13 20:41 
AnswerRe: how to lock function? Pin
CPallini16-Sep-13 21:18
mveCPallini16-Sep-13 21:18 
AnswerRe: how to lock function? Pin
Freak3016-Sep-13 22:06
Freak3016-Sep-13 22:06 
GeneralRe: how to lock function? Pin
pasztorpisti17-Sep-13 0:27
pasztorpisti17-Sep-13 0:27 
QuestionWhat does it mean when...... Pin
Richard Andrew x6416-Sep-13 10:42
professionalRichard Andrew x6416-Sep-13 10:42 
AnswerRe: What does it mean when...... Pin
Graham Breach16-Sep-13 11:26
Graham Breach16-Sep-13 11:26 
GeneralRe: What does it mean when...... Pin
Richard Andrew x6416-Sep-13 11:51
professionalRichard Andrew x6416-Sep-13 11:51 
QuestionFeedback appreciated Pin
Marco Bertschi16-Sep-13 0:15
protectorMarco Bertschi16-Sep-13 0: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.