Click here to Skip to main content
15,918,742 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralGetting a WM_LBUTTONUP in a listview Pin
Jim Crafton7-Jun-01 18:08
Jim Crafton7-Jun-01 18:08 
GeneralRe: Getting a WM_LBUTTONUP in a listview Pin
7-Jun-01 19:35
suss7-Jun-01 19:35 
GeneralRe: Getting a WM_LBUTTONUP in a listview Pin
Tomasz Sowinski8-Jun-01 0:31
Tomasz Sowinski8-Jun-01 0:31 
GeneralRe: Getting a WM_LBUTTONUP in a listview Pin
Jim Crafton8-Jun-01 7:19
Jim Crafton8-Jun-01 7:19 
GeneralRe: Getting a WM_LBUTTONUP in a listview Pin
Tomasz Sowinski9-Jun-01 2:21
Tomasz Sowinski9-Jun-01 2:21 
GeneralCSplitterWnd without AppWizard Pin
Nathan Hoffman7-Jun-01 12:14
Nathan Hoffman7-Jun-01 12:14 
GeneralRe: CSplitterWnd without AppWizard Pin
Christian Graus7-Jun-01 12:51
protectorChristian Graus7-Jun-01 12:51 
GeneralRe: CSplitterWnd without AppWizard Pin
Vivek Rajan7-Jun-01 19:56
Vivek Rajan7-Jun-01 19:56 
Hi-

-Pls post the code- if you want specific help -

Ok, you dont like the AppWizard, but I am sure you have the following..

1. A CFrameWnd derived class
2. A CView derived class ( for the left pane)
3. A CView derived class ( for the right pane)

I assume you also dont like ClassWizard, in that case
1. Manually override the OnCreateClient function in the CFrameWnd derived class.
2. Add a member variable CSplitterWnd (m_wndSplitter) in the CFrameWnd dervied class.
3. Add the following code to the OnCreateClient function..
.....
m_wndSplitter.CreateStatic(this, 2,1);

m_wndSplitter.CreateView(0,0,RUNTIME_CLASS(LeftView),CSize(rect.Width(),rect.Height()), pContext);
m_wndSplitter.CreateView(1,0,RUNTIME_CLASS(RightView),CSize(rect.Width(),rect.Height()/4), pContext);

.....

Voila thats it..
Also handle the WM_SIZE mthod if you want to..

One suggestion : If you refuse to use AppWizard or ClassWizard, you are setting yourself up for a lot of misery.

Later-
V

GeneralRe: CSplitterWnd without AppWizard Pin
Nathan Hoffman8-Jun-01 16:09
Nathan Hoffman8-Jun-01 16:09 
QuestionWhat is wrong ??? (MSCOMM) Pin
Hadi Rezaee7-Jun-01 11:10
Hadi Rezaee7-Jun-01 11:10 
AnswerRe: What is wrong ??? (MSCOMM) Pin
Ghazi H. Wadi7-Jun-01 12:10
Ghazi H. Wadi7-Jun-01 12:10 
AnswerRe: What is wrong ??? (MSCOMM) Pin
D.D. de Kerf7-Jun-01 20:40
D.D. de Kerf7-Jun-01 20:40 
GeneralRe: What is wrong ??? (MSCOMM) Pin
Hadi Rezaee8-Jun-01 0:06
Hadi Rezaee8-Jun-01 0:06 
GeneralRe: What is wrong ??? (MSCOMM) Pin
D.D. de Kerf8-Jun-01 0:14
D.D. de Kerf8-Jun-01 0:14 
GeneralRe: What is wrong ??? (MSCOMM) Pin
Hadi Rezaee8-Jun-01 3:31
Hadi Rezaee8-Jun-01 3:31 
GeneralRe: What is wrong ??? (MSCOMM) Pin
Hadi Rezaee8-Jun-01 8:06
Hadi Rezaee8-Jun-01 8:06 
GeneralRe: What is wrong ??? (MSCOMM) Pin
D.D. de Kerf10-Jun-01 20:48
D.D. de Kerf10-Jun-01 20:48 
GeneralRe: What is wrong ??? (MSCOMM) Pin
Hadi Rezaee10-Jun-01 21:18
Hadi Rezaee10-Jun-01 21:18 
GeneralRe: What is wrong ??? (MSCOMM) Pin
D.D. de Kerf10-Jun-01 21:30
D.D. de Kerf10-Jun-01 21:30 
GeneralRe: What is wrong ??? (MSCOMM) Pin
Hadi Rezaee10-Jun-01 21:40
Hadi Rezaee10-Jun-01 21:40 
GeneralRe: What is wrong ??? (MSCOMM) Pin
Hadi Rezaee16-Jun-01 10:23
Hadi Rezaee16-Jun-01 10:23 
GeneralATL Dialogs Pin
AndyC7-Jun-01 8:54
AndyC7-Jun-01 8:54 
GeneralCStatic bmp and Mouse click message Pin
BryanBHU7-Jun-01 7:56
BryanBHU7-Jun-01 7:56 
GeneralRe: CStatic bmp and Mouse click message Pin
Christian Graus7-Jun-01 12:53
protectorChristian Graus7-Jun-01 12:53 
GeneralRe: CStatic bmp and Mouse click message Pin
Michael Dunn7-Jun-01 19:27
sitebuilderMichael Dunn7-Jun-01 19:27 

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.