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

C / C++ / MFC

 
GeneralRe: What's wrong with this codes? But it generates Stack Overflow exception. Pin
Joe Woodbury18-Apr-03 6:11
professionalJoe Woodbury18-Apr-03 6:11 
GeneralWhat's wrong with this codes? But it generates Stack Overflow exception. Pin
DengJW17-Apr-03 20:25
DengJW17-Apr-03 20:25 
GeneralRe: What's wrong with this codes? But it generates Stack Overflow exception. Pin
chifor17-Apr-03 22:32
chifor17-Apr-03 22:32 
GeneralRe: What's wrong with this codes? But it generates Stack Overflow exception. Pin
DengJW18-Apr-03 21:21
DengJW18-Apr-03 21:21 
Questionempty CDocument??? Pin
alex.barylski17-Apr-03 19:17
alex.barylski17-Apr-03 19:17 
AnswerRe: empty CDocument??? Pin
Bartosz Bien17-Apr-03 22:42
Bartosz Bien17-Apr-03 22:42 
GeneralRe: empty CDocument??? Pin
alex.barylski18-Apr-03 7:55
alex.barylski18-Apr-03 7:55 
GeneralRe: empty CDocument? Sure! Pin
Bartosz Bien18-Apr-03 8:34
Bartosz Bien18-Apr-03 8:34 
Sample OnCreateClient for NULL document case (untested and not very elegant - but you will get the idea):

class CYourFrame : public CFrameWnd<br />
{<br />
    // ...<br />
    CSplitterWnd Splitter;<br />
    // ...<br />
}


BOOL CYourFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext*) <br />
{<br />
    CCreateContext cx;<br />
    cx.m_pCurrentFrame = this;<br />
<br />
    Splitter.CreateStatic(this, 1, 2);<br />
    Splitter.CreateView(0, 0, RUNTIME_CLASS(CMyViewLeft), CSize(250, 250), &cx);<br />
    Splitter.CreateView(0, 1, RUNTIME_CLASS(CMyViewRight), CSize(0, 0), &cx);<br />
<br />
    if(bInitialUpdate) Splitter.SendMessageToDescendants(WM_INITIALUPDATE, 0, 0, FALSE);<br />
<br />
    Splitter.SetActivePane(0, 0);<br />
    return TRUE;<br />
}


Note: You may pass NULL as a last parameter to CSplitterWnd::CreateView, the WM_INITIALUPDATE message will then be automagically sent to the subsequently created views.

Regards,
BB
GeneralQuestion about playing .wav files using mmio functions Pin
novicedude17-Apr-03 18:21
novicedude17-Apr-03 18:21 
GeneralRe: Question about playing .wav files using mmio functions Pin
chifor17-Apr-03 21:14
chifor17-Apr-03 21:14 
GeneralSetTimer Pin
ZarrinPour17-Apr-03 18:20
ZarrinPour17-Apr-03 18:20 
GeneralRe: SetTimer Pin
Ravi Bhavnani17-Apr-03 19:28
professionalRavi Bhavnani17-Apr-03 19:28 
GeneralRe: SetTimer Pin
Toni7817-Apr-03 19:34
Toni7817-Apr-03 19:34 
GeneralRe: SetTimer Pin
Michael Dunn17-Apr-03 19:36
sitebuilderMichael Dunn17-Apr-03 19:36 
GeneralRe: SetTimer Pin
Ravi Bhavnani17-Apr-03 20:44
professionalRavi Bhavnani17-Apr-03 20:44 
GeneralRe: SetTimer Pin
David Crow18-Apr-03 4:26
David Crow18-Apr-03 4:26 
GeneralRestrict user from accessing drives Pin
svsrikanth17-Apr-03 18:07
svsrikanth17-Apr-03 18:07 
GeneralRe: Restrict user from accessing drives Pin
David Crow18-Apr-03 5:01
David Crow18-Apr-03 5:01 
GeneralQuestion about the state of a stream. Pin
George217-Apr-03 17:18
George217-Apr-03 17:18 
GeneralTwo programs - Same file Instantaneous write and read. Pin
Pecan20417-Apr-03 16:52
Pecan20417-Apr-03 16:52 
GeneralRe: Two programs - Same file Instantaneous write and read. Pin
Michael Dunn17-Apr-03 17:01
sitebuilderMichael Dunn17-Apr-03 17:01 
GeneralRe: Two programs - Same file Instantaneous write and read. Pin
John M. Drescher17-Apr-03 18:09
John M. Drescher17-Apr-03 18:09 
GeneralRe: Two programs - Same file Instantaneous write and read. Pin
Pecan20418-Apr-03 1:46
Pecan20418-Apr-03 1:46 
GeneralRe: Two programs - Same file Instantaneous write and read. Pin
David Crow18-Apr-03 5:08
David Crow18-Apr-03 5:08 
GeneralCan't write to registry when I use CRegKey... Pin
IrishSonic17-Apr-03 14:56
IrishSonic17-Apr-03 14:56 

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.