Click here to Skip to main content
15,887,746 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to get DNS addresses from a local pc. Pin
daavena24-Dec-07 3:13
daavena24-Dec-07 3:13 
GeneralDXF solution Pin
Becker24-Dec-07 2:44
Becker24-Dec-07 2:44 
QuestionDWG viewer using VC++ Pin
jakuar24-Dec-07 2:34
sussjakuar24-Dec-07 2:34 
GeneralRe: DWG viewer using VC++ Pin
Joan M29-Dec-07 11:02
professionalJoan M29-Dec-07 11:02 
QuestionCreating views in Top Level MDI Pin
snir_ya24-Dec-07 0:59
snir_ya24-Dec-07 0:59 
QuestionRe: Creating views in Top Level MDI Pin
Nishad S24-Dec-07 2:22
Nishad S24-Dec-07 2:22 
QuestionRe: Creating views in Top Level MDI Pin
snir_ya24-Dec-07 3:10
snir_ya24-Dec-07 3:10 
GeneralRe: Creating views in Top Level MDI Pin
Nishad S24-Dec-07 3:16
Nishad S24-Dec-07 3:16 
So in the view class you can use that. I mean, (but I am not sure, since I dont know your implementation), you can handle it in the OnDraw, or in your drawing code. Like...

void CTopLevelMDI_TestView::OnDraw(CDC* /*pDC*/)
{
    CTopLevelMDI_TestDoc* pDoc = GetDocument();
    ASSERT_VALID(pDoc);
    if (!pDoc)
        return;

    if( pDoc->m_nGameType == 1 )
    {
        // Drawing for Game 1
    }
    else if( ... )
    {
        // So on...
    }
}


- NS -
[ODBaseBtn]

GeneralRe: Creating views in Top Level MDI Pin
snir_ya24-Dec-07 5:05
snir_ya24-Dec-07 5:05 
GeneralMy new problem is to copy directory Pin
rajneshmalik23-Dec-07 23:23
rajneshmalik23-Dec-07 23:23 
GeneralRe: My new problem is to copy directory Pin
Nishad S23-Dec-07 23:59
Nishad S23-Dec-07 23:59 
GeneralRe: My new problem is to copy directory Pin
rajneshmalik25-Dec-07 19:42
rajneshmalik25-Dec-07 19:42 
GeneralRe: My new problem is to copy directory Pin
Nishad S25-Dec-07 19:56
Nishad S25-Dec-07 19:56 
GeneralwxWidgets not playing nicely with MFC Pin
Shaheed Legion23-Dec-07 22:06
Shaheed Legion23-Dec-07 22:06 
GeneralRe: wxWidgets not playing nicely with MFC Pin
Shaheed Legion27-Dec-07 1:16
Shaheed Legion27-Dec-07 1:16 
GeneralRe: wxWidgets not playing nicely with MFC Pin
JudyL_MD27-Dec-07 17:06
JudyL_MD27-Dec-07 17:06 
GeneralRe: wxWidgets not playing nicely with MFC Pin
Shaheed Legion7-Jan-13 7:21
Shaheed Legion7-Jan-13 7:21 
GeneralChange the background color of individual columns Pin
johnalek23-Dec-07 22:06
johnalek23-Dec-07 22:06 
JokeRe: Change the background color of individual columns Pin
CPallini23-Dec-07 22:10
mveCPallini23-Dec-07 22:10 
GeneralRe: Change the background color of individual columns Pin
Nishad S23-Dec-07 22:32
Nishad S23-Dec-07 22:32 
GeneralRe: Change the background color of individual columns Pin
Hamid_RT23-Dec-07 23:12
Hamid_RT23-Dec-07 23:12 
GeneralCreate a dialog Pin
john563223-Dec-07 19:50
john563223-Dec-07 19:50 
GeneralRe: Create a dialog Pin
Hamid_RT23-Dec-07 20:00
Hamid_RT23-Dec-07 20:00 
GeneralRe: Create a dialog Pin
john563223-Dec-07 20:06
john563223-Dec-07 20:06 
GeneralRe: Create a dialog Pin
Hamid_RT23-Dec-07 20:16
Hamid_RT23-Dec-07 20:16 

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.