Click here to Skip to main content
16,006,378 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: SW_HIDE Pin
RobJones5-Oct-01 13:09
RobJones5-Oct-01 13:09 
GeneralRe: SW_HIDE Pin
Fazlul Kabir6-Oct-01 19:21
Fazlul Kabir6-Oct-01 19:21 
GeneralRe: SW_HIDE Pin
RobJones8-Oct-01 4:08
RobJones8-Oct-01 4:08 
GeneralRe: SW_HIDE Pin
Stan Shannon5-Oct-01 12:34
Stan Shannon5-Oct-01 12:34 
GeneralRe: SW_HIDE Pin
Fazlul Kabir6-Oct-01 18:55
Fazlul Kabir6-Oct-01 18:55 
GeneralRe: SW_HIDE Pin
Michael Dunn5-Oct-01 14:51
sitebuilderMichael Dunn5-Oct-01 14:51 
GeneralScrolling a CListBox. Pin
John Uhlenbrock5-Oct-01 12:02
John Uhlenbrock5-Oct-01 12:02 
GeneralMultiple Splitters in WTL Pin
Leo Smith5-Oct-01 11:22
Leo Smith5-Oct-01 11:22 
I am trying to create an app in WTL that needs a tri-pane view. I create the splitters fine, but for some reason I can't get the splitter that is inside the splitter to layout properly. How would you call the update? The problem is that m_verSplit does not set the splitter over towards the middle. I have enclosed a sample of the code (removing things that don't necessarily pertain to the issue at hand). How does one address the top panes update function.

class CMainFrame : public CFrameWindowImpl<cmainframe>, public CUpdateUI<cmainframe>,
public CMessageFilter, public CIdleHandler
{
public:
DECLARE_FRAME_WND_CLASS(NULL, IDR_MAINFRAME)

CTestView m_view;
CTreeViewCtrl m_treeview;
CListBox m_listbox;
CHorSplitterWindow m_horSplit;
CSplitterWindow m_verSplit;


LRESULT OnCreate(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
{
HWND hTemp;

RECT rect = { 0, 0, 1, 1 };
m_hWndClient = m_horSplit.Create(m_hWnd, rect, NULL, WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | WS_CLIPCHILDREN, 0);
hTemp = m_verSplit.Create(m_hWndClient, rect, NULL, WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | WS_CLIPCHILDREN, 0);

UpdateLayout(); // need this for SetSplitterPos
m_horSplit.SetSplitterPos(250, FALSE);
m_verSplit.SetSplitterPos(250, FALSE);
m_view.Create(m_hWndClient);
m_treeview.Create(hTemp, rcDefault, NULL,
WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | WS_CLIPCHILDREN | TVS_HASLINES | TVS_LINESATROOT | TVS_HASBUTTONS, WS_EX_CLIENTEDGE);
m_listbox.Create(hTemp, rcDefault, NULL,
WS_CHILD | WS_VISIBLE | WS_VSCROLL | WS_CLIPSIBLINGS | WS_CLIPCHILDREN | LBS_NOINTEGRALHEIGHT, WS_EX_CLIENTEDGE);

m_horSplit.SetSplitterPanes(m_verSplit, m_view);
m_verSplit.SetSplitterPanes(m_listbox,m_treeview);

return 0;
}
};


Thanks,

Leo T. Smith
Senior Programmer/Analyst
Hartwick College
QuestionHas anybody programmed SNMP? Pin
Kelly Herald5-Oct-01 10:57
Kelly Herald5-Oct-01 10:57 
AnswerRe: Has anybody programmed SNMP? Pin
Masaaki Onishi5-Oct-01 15:21
Masaaki Onishi5-Oct-01 15:21 
QuestionHow can I do a Dynamic Array like CByteArray for a STRUCT array ? Pin
youssef5-Oct-01 10:23
youssef5-Oct-01 10:23 
AnswerRe: How can I do a Dynamic Array like CByteArray for a STRUCT array ? Pin
Christian Graus5-Oct-01 10:59
protectorChristian Graus5-Oct-01 10:59 
AnswerRe: How can I do a Dynamic Array like CByteArray for a STRUCT array ? Pin
Paolo Messina5-Oct-01 11:01
professionalPaolo Messina5-Oct-01 11:01 
AnswerRe: How can I do a Dynamic Array like CByteArray for a STRUCT array ? Pin
Leo Smith5-Oct-01 11:05
Leo Smith5-Oct-01 11:05 
AnswerRe: How can I do a Dynamic Array like CByteArray for a STRUCT array ? Pin
Fazlul Kabir5-Oct-01 11:27
Fazlul Kabir5-Oct-01 11:27 
GeneralRe: How can I do a Dynamic Array like CByteArray for a STRUCT array ? Pin
Christian Graus5-Oct-01 16:53
protectorChristian Graus5-Oct-01 16:53 
GeneralRe: How can I do a Dynamic Array like CByteArray for a STRUCT array ? Pin
Fazlul Kabir6-Oct-01 11:28
Fazlul Kabir6-Oct-01 11:28 
GeneralRe: How can I do a Dynamic Array like CByteArray for a STRUCT array ? Pin
Christian Graus6-Oct-01 11:51
protectorChristian Graus6-Oct-01 11:51 
GeneralRe: How can I do a Dynamic Array like CByteArray for a STRUCT array ? Pin
Fazlul Kabir6-Oct-01 18:06
Fazlul Kabir6-Oct-01 18:06 
GeneralCListView with a Timer Pin
daniel995-Oct-01 10:14
daniel995-Oct-01 10:14 
GeneralRe: CListView with a Timer Pin
Andres Manggini5-Oct-01 10:43
Andres Manggini5-Oct-01 10:43 
QuestionHow do I use CButton::Create() to make a push button check box? Pin
Bart-Man5-Oct-01 10:12
Bart-Man5-Oct-01 10:12 
AnswerRe: How do I use CButton::Create() to make a push button check box? Pin
Fazlul Kabir5-Oct-01 10:17
Fazlul Kabir5-Oct-01 10:17 
GeneralRe: How do I use CButton::Create() to make a push button check box? Pin
Bart-Man5-Oct-01 10:22
Bart-Man5-Oct-01 10:22 
AnswerFinal Solution Pin
Bart-Man5-Oct-01 10:55
Bart-Man5-Oct-01 10:55 

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.