Click here to Skip to main content
15,922,696 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalbrain-teaser (?) 'cloaked' pointers Pin
Anonymous2-Feb-03 6:59
Anonymous2-Feb-03 6:59 
GeneralRe: brain-teaser (?) 'cloaked' pointers Pin
Joaquín M López Muñoz2-Feb-03 7:09
Joaquín M López Muñoz2-Feb-03 7:09 
GeneralRe: brain-teaser (?) 'cloaked' pointers Pin
Joel Lucsy3-Feb-03 2:43
Joel Lucsy3-Feb-03 2:43 
QuestionComboBox and mousebutton? Pin
Stefan Dahlin2-Feb-03 4:52
Stefan Dahlin2-Feb-03 4:52 
AnswerRe: ComboBox and mousebutton? Pin
Michael Dunn2-Feb-03 6:11
sitebuilderMichael Dunn2-Feb-03 6:11 
GeneralRe: ComboBox and mousebutton? Pin
Stefan Dahlin2-Feb-03 6:20
Stefan Dahlin2-Feb-03 6:20 
AnswerRe: ComboBox and mousebutton? Pin
Gary R. Wheeler2-Feb-03 6:22
Gary R. Wheeler2-Feb-03 6:22 
Generalsplit Wnd Pin
smallcoder2-Feb-03 4:18
smallcoder2-Feb-03 4:18 
hi every body !!

got a little problem

i'm doing a chat view. So what do i have to get in .

2 parts : one for reading and the other one for writng!

So that does mean if you do this with splitter window you need Row
ok

now the problem

i split my window with the 2 views (edit and edit or richedit)
i lock the split bar so that the user will not be move it nut my problem is that

:

1/ when you split and define 2 row you can just specifie the size of the first row.and this first row must be on the top the second on the bottom.

2/ that's not what i need because i would like to fix the bottom side or the second row which is the window where you can write.
in another word the size of the window in which the user will write must be fixed.
the problem is that this window is unfortunatly the second when you split your window .Indded this window is at the bottom

i would like to know a method to do this :


what i konw : split put the view and lock the bar

what i would like to know :

a°) specifie size of the second window (which on the second

row) which is the window where the user can write his text.

b°) for the first row where text will be display, which is on the top i don't care about his size.It can move

c°) what i want is to lock my split bar relativly to the bottom
having a fixed size for the bottom row


just that

if you don't anderstand ask me picture

or more question or code


this is what i try to do :
my idear was to reverse the coordinate so that the first row would be created on the bottom and fix and the second row on the top level widow but it doesn't work !!

i did this

BOOL CChildFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
/*if (!m_wndSplitter.CreateStatic(this,1,2) ||
!m_wndSplitter.CreateView

(0,0,RUNTIME_CLASS(Csearck),CSize(128,0),pContext)


||!m_wndSplitter.CreateView

(0,1,RUNTIME_CLASS(CScearchList),CSize(0,0),pConte
xt))

return FALSE;
m_wndSplitter.Locked(TRUE);*/

m_wndSplitter.CreateStatic(this,2,1);

CClientDC dc (&m_wndSplitter);

CRect rect;

m_wndSplitter.GetClientRect(&rect);

dc.SetViewportOrg(rect.Width(),rect.Height());

m_wndSplitter. CreateView(0,0,RUNTIME_CLASS(CEditView),CSize(0,12
8),pContext);

m_wndSplitter. CreateView(1,0,RUNTIME_CLASS(CScearchList),CSize(0
,0),pContext);

m_wndSplitter.Locked(TRUE);


return TRUE;
}



if you think that you can't , that means that you can : if you understand this there youn can
QuestionPreSubClassWindow() has no valid font on recreate? Pin
Moak2-Feb-03 2:05
Moak2-Feb-03 2:05 
AnswerRe: PreSubClassWindow() has no valid font on recreate? Pin
Moak3-Feb-03 0:48
Moak3-Feb-03 0:48 
QuestionHow can I load file.x from Listbox? Pin
poomred2-Feb-03 1:43
poomred2-Feb-03 1:43 
AnswerRe: How can I load file.x from Listbox? Pin
Gero Gerber2-Feb-03 2:01
Gero Gerber2-Feb-03 2:01 
AnswerRe: How can I load file.x from Listbox? Pin
Dominik Reichl2-Feb-03 2:39
Dominik Reichl2-Feb-03 2:39 
AnswerRe: How can I load file.x from Listbox? Pin
Abbas_Riazi2-Feb-03 4:11
professionalAbbas_Riazi2-Feb-03 4:11 
GeneralHandle to remote program Pin
pz7906102-Feb-03 0:32
pz7906102-Feb-03 0:32 
GeneralRe: Handle to remote program Pin
Abbas_Riazi2-Feb-03 3:49
professionalAbbas_Riazi2-Feb-03 3:49 
GeneralControl a remote program over local area network Pin
pz7906102-Feb-03 0:29
pz7906102-Feb-03 0:29 
GeneralRe: Control a remote program over local area network Pin
Abbas_Riazi2-Feb-03 3:51
professionalAbbas_Riazi2-Feb-03 3:51 
GeneralRemote Database Connectivity Pin
Tarun Dutt Mathur1-Feb-03 21:43
Tarun Dutt Mathur1-Feb-03 21:43 
GeneralRe: Remote Database Connectivity Pin
Abbas_Riazi1-Feb-03 23:46
professionalAbbas_Riazi1-Feb-03 23:46 
GeneralRe: Remote Database Connectivity Pin
Tarun Dutt Mathur2-Feb-03 1:08
Tarun Dutt Mathur2-Feb-03 1:08 
GeneralRe: Remote Database Connectivity Pin
Abbas_Riazi2-Feb-03 4:01
professionalAbbas_Riazi2-Feb-03 4:01 
GeneralRe: Remote Database Connectivity Pin
Tarun Dutt Mathur3-Feb-03 0:43
Tarun Dutt Mathur3-Feb-03 0:43 
GeneralWindows Services Pin
Christian Graus1-Feb-03 20:26
protectorChristian Graus1-Feb-03 20:26 
GeneralRe: Windows Services Pin
Anders Molin2-Feb-03 8:40
professionalAnders Molin2-Feb-03 8:40 

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.