Click here to Skip to main content
16,005,826 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Custome File Extensions with C++ Pin
Cedric Moonen28-May-08 7:48
Cedric Moonen28-May-08 7:48 
QuestionRe: Custome File Extensions with C++ Pin
David Crow28-May-08 8:31
David Crow28-May-08 8:31 
AnswerRe: Custome File Extensions with C++ Pin
Diagathon28-May-08 12:14
Diagathon28-May-08 12:14 
GeneralRe: Custome File Extensions with C++ Pin
Nelek28-May-08 20:38
protectorNelek28-May-08 20:38 
GeneralRe: Custome File Extensions with C++ Pin
Diagathon29-May-08 11:36
Diagathon29-May-08 11:36 
QuestionForcing the creation of a FrameWnd inside a view or anyother CWnd type window.. Pin
Ahmed Charfeddine28-May-08 5:37
Ahmed Charfeddine28-May-08 5:37 
AnswerRe: Forcing the creation of a FrameWnd inside a view or anyother CWnd type window.. Pin
led mike28-May-08 6:14
led mike28-May-08 6:14 
GeneralRe: Forcing the creation of a FrameWnd inside a view or anyother CWnd type window.. Pin
Ahmed Charfeddine28-May-08 7:54
Ahmed Charfeddine28-May-08 7:54 
thank you M.Mike for your reply,
I just want to be sure of your answer, because I am furious that your yes is about the docking panes I want inside my View...
Of course I will not even think of implementing my own docking code..companies products like bcg GuiToolKit, profuis, xtreemeToolKit were about that complex but powerful feature.
I want to see if I can create a CFrameWnd inside a CView, becuase indeed I will derive the CframeWnd from the MFC extension pack new frame class, and there easily put my panes !
the bridge I saw to create the many UIs inside the View was to be able to embed a frameWnd inside a CView, becuase I already know all the way to the finaly creation of the panes.

now I just use the create function of each Cwnd component I want to put in the View..and I lay them out inside the view statically.. the maximum I did was to intercept the Onsize member of the View and position the child UI component according to some logical ratios..

But after that I found that some redimensioning coming from the outside world of the view (ie the MainFrame, the mlainframe panes, the multiople childframe templates (becuase they can be put vertically or horzonattl,etc) and the spce left for the child frame, then the panes inside the childframe parent of the View I am telling you about) does happen (ie the redimensioning), the logic of ratios become frustrating, so I tried to put splitters between the child UI components of the View and hence let the user resize at his will (i rather say let the program user helps the program itself with the perfect redimensioning of those childUIs).
then came the story of how to put a non-CView derived object into a pane of the very famous CSplitterWnd.The thing has led me to the CSimpleSplitter of someone who published here in an article (and I thank him). CSimpleSplitter is not derived from CSplitterWnd and has the charasteristic of beeing able to host any CWnd type object on its child user-resizable panes.Then came problems with that class, problems which I can go and recite them fearing you may say this person talks too much even though I can go with it supposing that the foregoing newspaper has already lead you to that conclusion.
Now I am thinking of CFrameWnd alternative and yes for that purpose of bringing the support of docking panes. afterall they can be detached, so a pane can take the full size..and also have beautiful header and gripper which I can exploit to put a title text on it.

The MFC is powerful..nevertheless things like some avoidable design and implementation divergeances whcih I think may have been the consequence of believing that users of MFC will not go beyond the initial model put for it, ie for example no one would need an OnCreateClient member inside a CView, --things like that are reducing my happiness, and increasing the happiness of the one who has a drag and drop toolBox from which he can bring a SplitContainer and on top of which he can put whatsoever..
I am not blaming a particular variable..But my blame is on anyone who creates a DockingManager and then require its implementation to be as a member of CFrameDerived object, my blame is on anyone who creates something that is to be integrated in a host with too much preconditions set on that host not to reduce the effective use of what he created.

re undoability is not a word :
i am sorry i am arab.

Our Philosophy, Mohammed Baqir Al Sadr

GeneralRe: Forcing the creation of a FrameWnd inside a view or anyother CWnd type window.. Pin
led mike28-May-08 8:54
led mike28-May-08 8:54 
AnswerRe: Forcing the creation of a FrameWnd inside a view or anyother CWnd type window.. Pin
SandipG 28-May-08 19:57
SandipG 28-May-08 19:57 
GeneralRe: Forcing the creation of a FrameWnd inside a view or anyother CWnd type window.. Pin
Ahmed Charfeddine28-May-08 23:46
Ahmed Charfeddine28-May-08 23:46 
QuestionHow to get running OPC servers in the network? Pin
Member 475076128-May-08 4:29
Member 475076128-May-08 4:29 
AnswerRe: How to get running OPC servers in the network? Pin
Rajesh R Subramanian28-May-08 4:40
professionalRajesh R Subramanian28-May-08 4:40 
AnswerRe: How to get running OPC servers in the network? Pin
Randor 28-May-08 5:54
professional Randor 28-May-08 5:54 
QuestionHow to resolve this err. Pin
KASR128-May-08 2:08
KASR128-May-08 2:08 
AnswerRe: How to resolve this err. Pin
Cedric Moonen28-May-08 2:25
Cedric Moonen28-May-08 2:25 
AnswerRe: How to resolve this err. Pin
CPallini28-May-08 2:26
mveCPallini28-May-08 2:26 
AnswerRe: How to resolve this err. Pin
SandipG 28-May-08 2:41
SandipG 28-May-08 2:41 
QuestionAbout Strtok Pin
savitri28-May-08 1:32
savitri28-May-08 1:32 
AnswerRe: About Strtok Pin
Nibu babu thomas28-May-08 1:52
Nibu babu thomas28-May-08 1:52 
GeneralRe: About Strtok Pin
Graham Bradshaw28-May-08 13:06
Graham Bradshaw28-May-08 13:06 
GeneralRe: About Strtok Pin
Nibu babu thomas28-May-08 17:01
Nibu babu thomas28-May-08 17:01 
AnswerRe: About Strtok Pin
bob1697228-May-08 2:07
bob1697228-May-08 2:07 
AnswerRe: About Strtok Pin
Jijo.Raj28-May-08 8:55
Jijo.Raj28-May-08 8:55 
QuestionLittle conversion problem Pin
Ritxi28-May-08 1:18
Ritxi28-May-08 1:18 

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.