Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
D

DerekSaw

@DerekSaw
About
Posts
13
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • different MDI Child opening same file
    D DerekSaw

    It seems that MFC don't allow me to open documents with the same name...... I JUST WANT to have my MDI apps able to *open* and read multiple documents with the same name...i.e. my OnOpenDocument() will be called everytime even if i'm opening another file with the same name... I don't want them to have views sharing the same doc... because at later time I'm going to add different things into all of them.... and maybe have them output data eg. filename.001 for view 1, filename.002 for view 2..... Pls help.

    C / C++ / MFC c++ help

  • Just single instance of my app.
    D DerekSaw

    Hi there, how do I have my application just to run single instance of it. er....eg. Restore the previous instance of the app and then exits.

    C / C++ / MFC question

  • Directly creating a CFormView as a child?
    D DerekSaw

    hmm... the example doesn't show me how to create a CFormView DIRECTLY... nice article though. thanx :) What I want is, the CFormView is not created dynamically under a CSplitterWnd, but I want it to be under a CControlBar... and created (maybe) in OnCreate() of CControlBar by calling CFormView::Create().

    C / C++ / MFC question

  • Directly creating a CFormView as a child?
    D DerekSaw

    To be exact, I want it to be a child (control?) in a (well-known)CSizableControlBar derivative.

    C / C++ / MFC question

  • Directly creating a CFormView as a child?
    D DerekSaw

    How could we have an object (not dynamicall created) of CFormView (and derivatives)? I've tried: CSomeView someview; someview.Create(...); but they give me "An unsupported operation was attempted". Any way for me to create CSomeView manually (explicit call to Create() ) ? Or any suggestion/hack on allowing me to do this?

    C / C++ / MFC question

  • Changing STATIC control caption
    D DerekSaw

    I already change the default id to something else (e.g. IDC_SOMEDIALOG_LABEL)

    C / C++ / MFC tutorial question

  • Changing STATIC control caption
    D DerekSaw

    Yep.. I did that (both SetWindowText and WM_SETTEXT)... but no text is changed.... if I set it between Create and ShowWindow, nothings happen. But if I set it after ShowWindow, yes it works! And btw, I'm using the old MFC 4.21 (i.e. from VC++ 97)

    C / C++ / MFC tutorial question

  • Changing STATIC control caption
    D DerekSaw

    Oh. Thanks anyway. I've tested that out. We need to SET it after ShowWindow... *sigh*... is it true?

    C / C++ / MFC tutorial question

  • Changing STATIC control caption
    D DerekSaw

    How to change the caption for a STATIC control under a dialog box with codes? I've try sending WM_SETTEXT to the STATIC's wndhandle (obtain from ::GetDlgItem)... but it does nothing.

    C / C++ / MFC tutorial question

  • how to have bitmap background for CMDIFrameWnd?
    D DerekSaw

    Thank you very much. This is just what I want. :)

    C / C++ / MFC graphics tutorial question

  • how to have bitmap background for CMDIFrameWnd?
    D DerekSaw

    Yep, the title says it all. How to have bitmap on the background of CMDIFrameWnd (instead of the boring grey background)? ...and also... to have the small bitmap tiled on the background.

    C / C++ / MFC graphics tutorial question

  • problems with... MDI and Splitter::CreateView.
    D DerekSaw

    :) Thanx 4 the help. Can I create splitter window (and its view) on CMDIFrameWnd? I was thinking of doing something like VC++ where the Workspace is on the left of the splitter, and Output below another splitter, leaving the space left for ChildWnd. Any clue on these??

    C / C++ / MFC c++

  • problems with... MDI and Splitter::CreateView.
    D DerekSaw

    Previously, the app is SDI... but the I want to change it to MDI. So, CMainFrame (before derived from CFrameWnd) is derived from CMDIFrameWnd. But somehow rather, problems happen in here, the CreateView under OnCreateClient().... Anyone know the DO's and DON'Ts I need to know when converting from SDI to MDI.... // MainFrame.cpp .... BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext) { ... // Add the filter view if (!m_wndSplitterTop.CreateView(0, 0, RUNTIME_CLASS(CFilterView), CSize(cxUpper, 0), pContext)) ... } ...

    C / C++ / MFC c++
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups