Click here to Skip to main content
15,904,297 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralGetting the system date Pin
kerplatz16-Nov-03 11:56
kerplatz16-Nov-03 11:56 
GeneralRe: Getting the system date Pin
Michael Dunn16-Nov-03 12:38
sitebuilderMichael Dunn16-Nov-03 12:38 
GeneralRe: Getting the system date Pin
kerplatz16-Nov-03 13:10
kerplatz16-Nov-03 13:10 
GeneralRe: Getting the system date Pin
Steve S17-Nov-03 2:05
Steve S17-Nov-03 2:05 
QuestionHow to move a CToolBar? Pin
Florin Ochiana16-Nov-03 11:32
Florin Ochiana16-Nov-03 11:32 
QuestionHow to show (restore) my window when MessageBox dialog is not closed? Pin
julych16-Nov-03 10:38
julych16-Nov-03 10:38 
AnswerRe: How to show (restore) my window when MessageBox dialog is not closed? Pin
Uma Mahes16-Nov-03 17:39
Uma Mahes16-Nov-03 17:39 
GeneralToggle views :: In_SplitterWnd Pin
gaesabal16-Nov-03 8:23
gaesabal16-Nov-03 8:23 
Hi.
How can I Toggle views?
I use SplitterWnd (2x1), and want to toggle view in pane(0,0).
I made button for toggle, andthen, using flag for setting current-view state.
But, can't redraw view.(because that's Split-window?)
Followings: in this I use 2x1 and 1x2 splitterwnd.

CRect rect;
GetClientRect(rect);
if(!m_wndSplitter1.CreateStatic(this,2,1))
return FALSE;
m_wndSplitter2.CreateStatic(&this->m_wndSplitter1, 1, 2, WS_CHILD | WS_VISIBLE, m_wndSplitter1.IdFromRowCol(1,0));
m_wndSplitter1.CreateView(0,0,RUNTIME_CLASS(CDvMenu),CSize(rect.right,58),pContext);
m_wndSplitter2.CreateView(0,0,RUNTIME_CLASS(CDvView),CSize(rect.right/2,rect.bottom),pContext);//pic viewer
if(flag != 0)//flag for current view state
m_wndSplitter2.CreateView(0,1,RUNTIME_CLASS(CDvOpenGL),CSize(rect.right,rect.bottom),pContext);//opengl viewer
else
m_wndSplitter2.CreateView(0,1,RUNTIME_CLASS(CDvView),CSize(rect.right,rect.bottom),pContext);//pic viewer

SetActiveView((CView*) m_wndSplitter2.GetPane(0,1));
return TRUE;

~~~

void CDvMenu::OnToggle()
{
// TODO: Add your control notification handler code here
CMainFrame *pFrame = (CMainFrame *)AfxGetMainWnd();
CDvDoc* pDoc = (CDvDoc *)pFrame->GetActiveDocument();

BOOL toggle = ((CMainFrame*)pFrame)->flag;
if(toggle)
((CMainFrame*)pFrame)->flag = 0;
else
((CMainFrame*)pFrame)->flag = 1;
-------------> Here, what should I do? plz, help.Cry | :((
}
GeneralRe: Toggle views :: In_SplitterWnd Pin
Ivor S. Sargoytchev16-Nov-03 16:43
Ivor S. Sargoytchev16-Nov-03 16:43 
GeneralRestricting programs to parts of the screen Pin
Anonymous16-Nov-03 4:59
Anonymous16-Nov-03 4:59 
GeneralRe: Restricting programs to parts of the screen Pin
Michael Dunn16-Nov-03 5:23
sitebuilderMichael Dunn16-Nov-03 5:23 
Generalhelp wanted, pdf file split operation Pin
NotProfessional15-Nov-03 20:19
NotProfessional15-Nov-03 20:19 
GeneralHelp me: need strategy for CrashLogs Pin
Peter Weyzen15-Nov-03 18:22
Peter Weyzen15-Nov-03 18:22 
GeneralRe: Help me: need strategy for CrashLogs Pin
Michael P Butler16-Nov-03 1:48
Michael P Butler16-Nov-03 1:48 
GeneralRe: Help me: need strategy for CrashLogs Pin
Peter Molnar16-Nov-03 2:34
Peter Molnar16-Nov-03 2:34 
GeneralRe: Help me: need strategy for CrashLogs Pin
Ceri16-Nov-03 22:44
Ceri16-Nov-03 22:44 
GeneralRe: Help me: need strategy for CrashLogs Pin
Peter Weyzen17-Nov-03 8:30
Peter Weyzen17-Nov-03 8:30 
GeneralHelp in assembler. Pin
Snyp15-Nov-03 15:10
Snyp15-Nov-03 15:10 
GeneralRe: Help in assembler. Pin
Tim Smith15-Nov-03 16:21
Tim Smith15-Nov-03 16:21 
GeneralRe: Help in assembler. Pin
Snyp15-Nov-03 16:42
Snyp15-Nov-03 16:42 
GeneralRe: Help in assembler. Pin
Joe Woodbury15-Nov-03 18:45
professionalJoe Woodbury15-Nov-03 18:45 
GeneralRe: Help in assembler. Pin
Chris Richardson15-Nov-03 23:49
Chris Richardson15-Nov-03 23:49 
GeneralRe: Help in assembler. Pin
Snyp16-Nov-03 7:50
Snyp16-Nov-03 7:50 
GeneralRe: Help in assembler. Pin
Christian Graus16-Nov-03 16:19
protectorChristian Graus16-Nov-03 16:19 
QuestionHow do startup programs work. Pin
Snyp15-Nov-03 13:56
Snyp15-Nov-03 13: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.