Splitting with the existance of COutlook2Ctrl
-
I want to include the Outlook2Ctrl in a program, but I also want to split the right side area ( which is the remaining part ) horizontally into two panes. I used a class derived from CSplitterWnd (by Daniel Zuppinger) and it's on this site. But I couldn't do it. I tried to split, first vertically [CView || NULL] then using the NULL pane I splitted the right vertically. But couldn't include the Outlook2Ctrl in the CView place. Please help me...even by a hint...even not using the upper-mentioned splitter class. :(( Thanks
-
I want to include the Outlook2Ctrl in a program, but I also want to split the right side area ( which is the remaining part ) horizontally into two panes. I used a class derived from CSplitterWnd (by Daniel Zuppinger) and it's on this site. But I couldn't do it. I tried to split, first vertically [CView || NULL] then using the NULL pane I splitted the right vertically. But couldn't include the Outlook2Ctrl in the CView place. Please help me...even by a hint...even not using the upper-mentioned splitter class. :(( Thanks
It sounds like you need to create your own class that inherits directly from CView, then add the Outlook2Ctrl control to that window. When the window is resized, call MoveWindow on the outlook control to make it the same size as the view. -- Rocky Dean Pulley
-
It sounds like you need to create your own class that inherits directly from CView, then add the Outlook2Ctrl control to that window. When the window is resized, call MoveWindow on the outlook control to make it the same size as the view. -- Rocky Dean Pulley
The author of the Outlook2Ctrl had written "the outbar docks normally on the left side of the main frame", and in his demo, he included the Control in the MainFrame directly. So I am not sure, probably this control was meant to use some properties of the CFrameWnd class. I didn't sail into the class itself (Outlook2Ctrl) yet, because of the lack of time. And I thought that probably someone has done what I am looking for now. Anyway, thanks "Rocky Dean Pulley" for taking the time to reply to me. Probably I should do what you've said but with modifying COutlook2Ctrl itself also( or only). If there is any further suggestions from anyone here, I would really appreciate it. ////////////After sometime////////////// when I read what I have written above I noticed that I had some of the answer(it docks on the left side). So I remembered that I first tried to include the control and split the remaining to two parts horizontally....it didn't work at that time for a reason not related to it directly, I fixed that thing and continued working and trying other approaches forgetting the fact that it wasn't the real reason. So I fooled myself at that point. Sorry for bothering.:sigh: