Click here to Skip to main content
15,919,028 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCSplitterWnd - bug??? Pin
_-:: PhOeNiX ::-_15-Apr-04 10:34
_-:: PhOeNiX ::-_15-Apr-04 10:34 
I wanted to make a look something like this:
_________________
|************|**|
|************|**|
_________________ <- I can't get this splitter bar
|***************| (m_splitterWnd) to his right position
_________________ I've set the sizes right, but it doesn't work

The strange thing is that if I change the layout to:
____________________
|*****************|
___________________
|**************|**|
|**************|**|
____________________
it works... why?Confused | :confused:

Try to explain this code...

<br />
     RECT clientRect;<br />
     GetClientRect(&clientRect);<br />
     int iHeight = clientRect.bottom - clientRect.top,<br />
         iWidth = clientRect.right - clientRect.left;<br />
<br />
<br />
m_wndSplitter.CreateStatic(this, 2, 1, WS_CHILD | WS_VISIBLE, AFX_IDW_PANE_FIRST);<br />
m_wndSplitter1.CreateStatic(&m_wndSplitter, 1, 2, WS_CHILD | WS_VISIBLE,<br />
                            m_wndSplitter.IdFromRowCol(0,0));<br />
m_wndSplitter1.CreateView(0, 0, RUNTIME_CLASS(CEditView),<br />
                          CSize((int)(iWidth * 0.8), (int)(iHeight * 0.7)), pContext);<br />
m_wndSplitter1.CreateView(0, 1, RUNTIME_CLASS(CEditView),<br />
                          CSize((int)(iWidth * 0.2), (int)(iHeight * 0.7)), pContext);<br />
m_wndSplitter.CreateView(1, 0, RUNTIME_CLASS(CEditView),<br />
                         CSize(iWidth, (int)(iHeight*0.3)), pContext);<br />


Thanx... any help will be appreciated

..:: a l i e n ::..
GeneralNeed Urgent C++ help Pin
Anonymous15-Apr-04 10:34
Anonymous15-Apr-04 10:34 
GeneralRe: Need Urgent C++ help Pin
Christian Graus15-Apr-04 11:01
protectorChristian Graus15-Apr-04 11:01 
GeneralRemotely Connecting to SQL Server! Pin
abc87615-Apr-04 9:52
abc87615-Apr-04 9:52 
GeneralVB client for a C++ api Pin
Jim Crafton15-Apr-04 9:48
Jim Crafton15-Apr-04 9:48 
GeneralRe: VB client for a C++ api Pin
Gary R. Wheeler15-Apr-04 11:58
Gary R. Wheeler15-Apr-04 11:58 
GeneralWinApp::OnIdle Pin
_-:: PhOeNiX ::-_15-Apr-04 9:44
_-:: PhOeNiX ::-_15-Apr-04 9:44 
GeneralRe: WinApp::OnIdle Pin
PJ Arends15-Apr-04 11:53
professionalPJ Arends15-Apr-04 11:53 
GeneralSTACKS AND QUES Pin
PDALE15-Apr-04 8:04
PDALE15-Apr-04 8:04 
GeneralRe: STACKS AND QUES Pin
toxcct15-Apr-04 8:16
toxcct15-Apr-04 8:16 
GeneralRe: STACKS AND QUES Pin
Jim Crafton15-Apr-04 10:15
Jim Crafton15-Apr-04 10:15 
GeneralRe: STACKS AND QUES Pin
Jim Crafton15-Apr-04 10:17
Jim Crafton15-Apr-04 10:17 
GeneralMaskededit control Pin
C++NewBe15-Apr-04 7:49
C++NewBe15-Apr-04 7:49 
GeneralRe: Maskededit control Pin
David Crow15-Apr-04 10:14
David Crow15-Apr-04 10:14 
GeneralRe: Maskededit control Pin
C++NewBe15-Apr-04 10:19
C++NewBe15-Apr-04 10:19 
GeneralRe: Maskededit control Pin
David Crow15-Apr-04 10:33
David Crow15-Apr-04 10:33 
GeneralRe: Maskededit control Pin
C++NewBe15-Apr-04 10:42
C++NewBe15-Apr-04 10:42 
GeneralSerialize Pin
Demian Panello15-Apr-04 5:48
Demian Panello15-Apr-04 5:48 
GeneralMulti threading Pin
dreamerzz15-Apr-04 5:13
dreamerzz15-Apr-04 5:13 
GeneralRe: Multi threading Pin
David Crow15-Apr-04 7:16
David Crow15-Apr-04 7:16 
GeneralRe: Multi threading Pin
dreamerzz15-Apr-04 20:38
dreamerzz15-Apr-04 20:38 
GeneralRe: Multi threading Pin
David Crow19-Apr-04 2:28
David Crow19-Apr-04 2:28 
GeneralRe: Multi threading Pin
dreamerzz20-Apr-04 2:14
dreamerzz20-Apr-04 2:14 
QuestionVisual Basic-like editor for VC++ 6.0? Pin
AAntix15-Apr-04 4:55
AAntix15-Apr-04 4:55 
AnswerRe: Visual Basic-like editor for VC++ 6.0? Pin
toxcct15-Apr-04 6:54
toxcct15-Apr-04 6:54 

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.