Click here to Skip to main content
14,976,809 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: stl::list --- Issue using lists.. Pin
David Crow28-Aug-08 5:40
MemberDavid Crow28-Aug-08 5:40 
GeneralRe: stl::list --- Issue using lists.. Pin
FrankMookie28-Aug-08 5:48
MemberFrankMookie28-Aug-08 5:48 
QuestionSplitting Up Numbers Pin
Diagathon27-Aug-08 11:40
MemberDiagathon27-Aug-08 11:40 
AnswerRe: Splitting Up Numbers Pin
Dr. Emmett Brown27-Aug-08 12:08
MemberDr. Emmett Brown27-Aug-08 12:08 
GeneralRe: Splitting Up Numbers Pin
Robert.C.Cartaino27-Aug-08 12:37
MemberRobert.C.Cartaino27-Aug-08 12:37 
GeneralRe: Splitting Up Numbers Pin
David Crow28-Aug-08 4:04
MemberDavid Crow28-Aug-08 4:04 
GeneralRe: Splitting Up Numbers Pin
Diagathon29-Aug-08 8:12
MemberDiagathon29-Aug-08 8:12 
QuestionSmall usability issue with MFC Splitter window/ windows explorer style application Pin
Sternocera27-Aug-08 11:27
MemberSternocera27-Aug-08 11:27 
Hello guys,

I'm writing an MFC application that uses a splitter window - a "windows explorer" application. It is a typical windows explorer style application - it has a Treeview in the left pane for navigation, and a Frame that displays various views at different times in the right hand frame. I have a small usability problem - whenever the user opens a new dialog by interacting with the view displayed in the right hand frame, focus returns to the left hand pane (the treeview), rather than the right Frame which holds the current View, typically a Form View.

This is bad - surely focus should return to where it was lost from when the dialog was given focus - the right pane/ Form View.

I call this code from BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT /*lpcs*/, CCreateContext* pContext) :

m_wndSplitter.SetActivePane(0, 1) ;


However, this doesn't help, or have any discernible effect. Perhaps I've misunderstood what this method does - according to MSDN documentation- http://msdn.microsoft.com/en-us/library/52afb8hs(VS.80).aspx[^] -, it "sets the pane as active", and "is called by the framework" - I guess that means it is intended that the programmer should provide their own implementation of this virtual function, so they can do house keeping when the right hand pane gets focused by the user, rather than being intended for the programmer to call directly. What should I do to achieve the desired effect of having focus return to the right hand pane?

Regards,

Sternocera
AnswerRe: Small usability issue with MFC Splitter window/ windows explorer style application Pin
led mike27-Aug-08 11:44
Memberled mike27-Aug-08 11:44 
GeneralRe: Small usability issue with MFC Splitter window/ windows explorer style application Pin
Sternocera27-Aug-08 11:51
MemberSternocera27-Aug-08 11:51 
QuestionHow do I know the size of the char for ReadFile before reading the actual file. [modified] Pin
luisgrimaldo27-Aug-08 11:17
Memberluisgrimaldo27-Aug-08 11:17 
AnswerRe: How do I know the size of the char for ReadFile before reading the actual file. Pin
led mike27-Aug-08 11:47
Memberled mike27-Aug-08 11:47 
GeneralRe: How do I know the size of the char for ReadFile before reading the actual file. Pin
luisgrimaldo27-Aug-08 12:04
Memberluisgrimaldo27-Aug-08 12:04 
GeneralRe: How do I know the size of the char for ReadFile before reading the actual file. Pin
David Crow28-Aug-08 4:06
MemberDavid Crow28-Aug-08 4:06 
QuestionNeural Network Function Estimation Pin
Ehsan Baghaki27-Aug-08 10:07
MemberEhsan Baghaki27-Aug-08 10:07 
QuestionSetting menu item disabled state problem Pin
nick0122327-Aug-08 8:12
Membernick0122327-Aug-08 8:12 
QuestionRe: Setting menu item disabled state problem Pin
Mark Salsbery27-Aug-08 8:54
MemberMark Salsbery27-Aug-08 8:54 
AnswerRe: Setting menu item disabled state problem Pin
nick0122327-Aug-08 9:06
Membernick0122327-Aug-08 9:06 
GeneralRe: Setting menu item disabled state problem Pin
Mark Salsbery27-Aug-08 9:13
MemberMark Salsbery27-Aug-08 9:13 
GeneralRe: Setting menu item disabled state problem Pin
nick0122327-Aug-08 9:40
Membernick0122327-Aug-08 9:40 
AnswerRe: Setting menu item disabled state problem Pin
led mike27-Aug-08 9:09
Memberled mike27-Aug-08 9:09 
GeneralRe: Setting menu item disabled state problem Pin
Mark Salsbery27-Aug-08 9:11
MemberMark Salsbery27-Aug-08 9:11 
GeneralRe: Setting menu item disabled state problem Pin
led mike27-Aug-08 9:31
Memberled mike27-Aug-08 9:31 
GeneralRe: Setting menu item disabled state problem Pin
Mark Salsbery27-Aug-08 9:37
MemberMark Salsbery27-Aug-08 9:37 
QuestionCAVI "bitmap" colors - reserved value question Pin
Vaclav_27-Aug-08 8:00
MemberVaclav_27-Aug-08 8:00 

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.