Click here to Skip to main content
15,920,646 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: where's main() ??? Pin
Dave Sweetser16-Nov-03 14:34
Dave Sweetser16-Nov-03 14:34 
GeneralRe: where's main() ??? Pin
Ravi Bhavnani16-Nov-03 15:00
professionalRavi Bhavnani16-Nov-03 15:00 
GeneralRe: where's main() ??? Pin
Dave Sweetser16-Nov-03 15:22
Dave Sweetser16-Nov-03 15:22 
GeneralRe: where's main() ??? Pin
Ravi Bhavnani16-Nov-03 15:37
professionalRavi Bhavnani16-Nov-03 15:37 
GeneralRe: where's main() ??? Pin
Dave Sweetser16-Nov-03 15:57
Dave Sweetser16-Nov-03 15:57 
GeneralRe: where's main() ??? Pin
Johnny ²16-Nov-03 21:43
Johnny ²16-Nov-03 21:43 
GeneralRe: where's main() ??? Pin
Ravi Bhavnani17-Nov-03 3:43
professionalRavi Bhavnani17-Nov-03 3:43 
GeneralI need some help please Pin
Anonymous16-Nov-03 13:18
Anonymous16-Nov-03 13:18 
GeneralRe: I need some help please Pin
Christian Graus16-Nov-03 16:16
protectorChristian Graus16-Nov-03 16:16 
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 

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.