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
A

Aint

@Aint
About
Posts
47
Topics
26
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • "pDoc->SetTitle" problem
    A Aint

    Hey Rajkumar_R, Thanks for reproducing my issue. Your method works. To Nelek, Thanks to you too.

    C / C++ / MFC question help

  • "pDoc->SetTitle" problem
    A Aint

    yes. multiple views to the same doc. used pDoc->SetTitle() at OnInitialUpdate() of both views. thanks.

    C / C++ / MFC question help

  • Save as..
    A Aint

    Hi. In the MDI program that I've created, after I have "save as..", the title bar changed to the filename that I put in the save as dialog. How can I retain the old filename in the title bar?

    C / C++ / MFC question

  • "pDoc->SetTitle" problem
    A Aint

    hi. Ive tried but I have an error for this part: CMDIChildWnd* pMDIActive = MDIGetActive(); 'MDIGetActive' : undeclared identifier. Is there any header that I need to include?

    C / C++ / MFC question help

  • "pDoc->SetTitle" problem
    A Aint

    Ive tried but it didnt work. Do I need to put something extra other than that line?

    C / C++ / MFC question help

  • "pDoc->SetTitle" problem
    A Aint

    er.. How do I use that code? I've tried replacing it with the old one but the title bar stays the same as the original.

    C / C++ / MFC question help

  • "pDoc->SetTitle" problem
    A Aint

    Hello. I have created a CFormView based program and have added another CFormView class. I have tried to use this: pDoc->SetTitle("First View") for the first view and pDoc->SetTitle("Second View") for the second view. When file->open, the first view appear with the title "AppName - [First View]" but when I clicked on the menu for the second view, the first view title changed to "AppName - [Second View:1]". How can I make the title of the first view unchanged when the second view is opened? Thanks.

    C / C++ / MFC question help

  • Detecting the end of the file
    A Aint

    Yes. It shows that the error occur before the loop end, when iI = 300+. Can I use ar.??? to detect the end of the file?

    C / C++ / MFC css help question

  • Detecting the end of the file
    A Aint

    Hello. These are the codes that I have used to read a bin file and to store in 3 variables. Most of the files read have 1024 columns, hence iI < 1024. If i try to open a file that is less than 1024, the program will give me unexpected file format error. How can detect the end of the file and break from the loop if a file of less than 1024 column is opened? Thanks. void CVecDoc::Serialize(CArchive& ar) { int iI, iK; unsigned char cDataOne, cDataTwo; short sSwap, as[3]; if (ar.IsStoring()) { // TODO: add storing code here } else { // TODO: add loading code here for (iI = 0; iI < 1024; iI++) { for (iK = 0; iK < 3; iK++) { ar >> cDataOne >> cDataTwo; sSwap = ((short)cDataTwo << 8) + (short)cDataOne; as[iK] = sSwap; m_a1[iI] = as[0]; m_a2[iI] = as[1]; m_a3[iI] = as[2]; } } } }

    C / C++ / MFC css help question

  • Title bar
    A Aint

    change the title of the title bar.

    C / C++ / MFC question

  • Title bar
    A Aint

    Hi Is there a way to change the title bar of MDI? Thanks.

    C / C++ / MFC question

  • Any suggestion in implementing this idea?
    A Aint

    Yes.

    C / C++ / MFC data-structures tutorial question

  • Any suggestion in implementing this idea?
    A Aint

    Hi. I have created MDI derived from CFormview. When I File -> Open, a child window with this (first) view will open. This part is done. From there, user clicked on the modified menu say, View -> Graph. Then another child window will open with a different (second) view. This second view needs to be in CFormview as I will have control in it. Any suggestion on how to implement this idea? Thanks.

    C / C++ / MFC data-structures tutorial question

  • child window
    A Aint

    Hi. Sorry if I didn't state the problem clearly. I have a similar problem. I created MDI derived from CFormview. Now, I want to have a new view which I have managed to create by Insert -> Resource -> Dialog -> IDD_FORMVIEW. I have changed the ID to IDD_GRAPH. MDI created 2 menus called IDR_MAINFRAME and IDR_CVTYPE. I have modified IDR_CVTYPE to create another menu entry called 'View'. Under 'View', there is a submenu called 'Graph'. When the user click 'Graph', I want a child window to open with the new view (IDD_GRAPH). The problem is what should I code for the new view (IDD_GRAPH) to open when 'Graph' is clicked?

    C / C++ / MFC question

  • child window
    A Aint

    Hi. I have created a MDI with CFormview. I also have created a form in which I want to call from the menu. How do I call this form?

    C / C++ / MFC question

  • Scrollbar problem
    A Aint

    hi. control bar refers to toolbars, status bars, dialog bars and rebars? Im don't use any of them. I only have menu.

    C / C++ / MFC question help

  • Scrollbar problem
    A Aint

    hi. I have a MDI program done in CFormView which have a scrollbar control. when I minimize the child window and use the scrollbar of the child window, the scrollbar control in the CFormView follows the scrollbar of the child window. How can I the make the scrollbar control independent of the scrollbar of the child window? Thank you.

    C / C++ / MFC question help

  • Scrollbar range
    A Aint

    but this can only be used if you are using CScrollview? Im using CFormView with a scrollbar control, used to control a picture control.

    C / C++ / MFC data-structures help tutorial question

  • Scrollbar range
    A Aint

    Hi. I have set the scrollbar range from 0 to 9900 to accomodate the original graph. But I have a few radio buttons which reduce the size of the graph. The problem is when I reduce the size of the graph and scroll right to the back of the graph, there is this empty space. I know the scrollbar range is smaller but how to I change this range when the radio button is clicked? Thanks.

    C / C++ / MFC data-structures help tutorial question

  • slow scrollbar
    A Aint

    hi. I have created scrollbar in the application but the scrollbar move very slow when I clicked the two ends of the scrollbar. what should I do?

    C / C++ / MFC question
  • Login

  • Don't have an account? Register

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