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
C

coda_x

@coda_x
About
Posts
78
Topics
52
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • cannot find afxdao.lib
    C coda_x

    I compiled my program and it works on my own pc but when i run it on a laptop, the error appeared: unable to link to the afxdao.lib or header file. Where can i get the lib file to install to the laptop?

    C / C++ / MFC help question

  • radio buttons problem
    C coda_x

    i tried the following but somehow the radio buttons do not work accordingly. UpdateData (TRUE); if(m_radio=0){ do this...} if(m_radio=1){ {do this...} if(m_radio=2){ {do this...} i have 3 radio buttons grouped together.

    C / C++ / MFC help

  • radio buttons and check boxes
    C coda_x

    I have 3 checkboxes, if i put 1st one under group, does that mean that i can only select one box at any one time, just like in radio buttons? Also, for radio buttons, are they assigned button1 = -1, button 2=0, button3=1 and so forth? cause i need to use if else statements for the different buttons.

    C / C++ / MFC question

  • how do i align text together?
    C coda_x

    suppose my original text reads: name: xxx horoscope: yyyyy but i want to change it such that my xxx and yyyyy are aligned together. what code should i write?

    Web Development question

  • how to adjust line spacing within text?
    C coda_x

    I want to make the spacing between text lines bigger: eg from : this is my book to: this is my book what is the code to do that?

    Web Development question tutorial learning

  • how to enable/disable on mouse click?
    C coda_x

    I have an edit box to be enabled when user tick check box and disabled when box is unchecked. I want the disabling/enabling to be done immediately after user use the mouse click to check/uncheck. How do i detect the mouse click? currently the code is: if(left mouse click and box is checked){ GetDlgItem( IDC_BUTTON1 )->EnableWindow(TRUE);} else{ GetDlgItem( IDC_BUTTON1 )->EnableWindow(FALSE); }

    C / C++ / MFC question tutorial

  • how to enable an edit box?
    C coda_x

    I disabled my edit box in my dialog but i wish to enable it later on when a check box is checked. How do i code it? i tried: if(m_check==TRUE){ m_edit.EnableWindow(TRUE)} but cannot work.

    C / C++ / MFC question tutorial

  • radio button states
    C coda_x

    i have 2 radio buttons grouped together, variable name is m_button, when i checked the .cpp file, m_button =-1 (initialized). How do i detect which button has been checked? if i use: if(m_button!=-1) then this means can be button a or button b but i want to detect specifically either one. anyone can clarify? thanx

    C / C++ / MFC question c++

  • problem with dialog scrolls
    C coda_x

    I enabled the horizontal and vertical scrolling options in my dialog properties but how come when i run it, the scrollers doesn't work even though my dialog is bigger then screen size.

    C / C++ / MFC help

  • about using view in a dialog application
    C coda_x

    I created a dialog that has sort of a "view" based on tutorial here.The class for "view" i called it COpengl for drawing. I have some controls on the dialog. How do i get the COpengl class (or rather the OnPAint() in this class)to retrieve the current values from the dialog needed for drawing?

    C / C++ / MFC question graphics tutorial

  • to change drawing size of SDI formview
    C coda_x

    hi, i wish to change the size of the drawing area(black background in my case) so that can distinguish between this area and the grey background for putting dialog controls, is it possible? i do not want to use splitter windows... any solution will appreciate ;)

    C / C++ / MFC graphics question

  • need help on setting state flags
    C coda_x

    yah something like that, do I add it as member variable to both view and all dialog classes using the "add member variable" in the class view tab and of type:boolean and public? Also , i have another problem: i need the current values of the dialog in order to draw to SDI view, but first i want to capture these values in the SDI doc class, how do i code that assumming the values needed are length, breadth from dialog A. The dialogs are modal.

    C / C++ / MFC help question

  • how to vary the size of the view using SDI formview?
    C coda_x

    thanx for replying. actually what i meant was how to set the visual view - white screen for drawing to half the window size so that i can place controls on the other half which is not on white blackground.:doh:

    C / C++ / MFC question tutorial

  • need help on setting state flags
    C coda_x

    I am relatively new to programming and i need help on coding for state flags. my problem is: I want to set a state flag which sort of act as a switch for my onpaint() to be executed after my dialog has beem accessed in SDI. How do i code that line in my dialog and Onpaint(). Also, by doing this, will my onpaint() be able to access the updated values in the dialog? (as i need these values in order to draw).will greatly appreciate any kind help.

    C / C++ / MFC help question

  • how to vary the size of the view using SDI formview?
    C coda_x

    i created an SDI using formview. i wish to use half of the formview for visualization purposes, and the other half for placing dialog controls. how do i change the view size?

    C / C++ / MFC question tutorial

  • how to call Onpaint only when dialog is receiving user inputs?
    C coda_x

    thanx for replying. i am considering alternative or setting state flags but i not sure how to code that in child dialog and view class's Onpaint().can you illustrate?

    C / C++ / MFC graphics help tutorial question

  • query on SDI doc/view and opengl
    C coda_x

    hi I have an SDI with a few dialogs within for user interactions. I wish to know if it is possible for the doc class to gather data from the dialogs and then using the OnPaint() in view class to draw the graphics? I been having problems trying to connect the user input data to visual display. is there any way to directly code drawing in view class and then execute when after dialogs are accessed?

    C / C++ / MFC graphics database game-dev question

  • how to call Onpaint only when dialog is receiving user inputs?
    C coda_x

    i have a main dialog containing 3 child dialogs. I created a COpenglclass in main dialog such that any image visualization will take place in the main dialog. But i do not know how to detect that if any child dialogs are accessed only then will my drawing code in the COpengl class take in data from the child dialog and show the relevant image. need help on this urgently

    C / C++ / MFC graphics help tutorial question

  • project problem
    C coda_x

    i am not very proficient in programming so can tell me how can i code that supposing my dialog is called dialog A? thank you

    C / C++ / MFC help question c++ graphics learning

  • project problem
    C coda_x

    i created an SDI with several dialogs within for my project. Each time user input data into certain dialog, my Onpaint() in view class will show the image in the main window. It is more of like reading in user inputs and visualizing images at every dialog stage. Problem is, how do i control when to show the image? ie, i only want the Onpaint() to draw when dialog is receiving inputs instead of at beginning of program where of course my dialog is not activated yet. Also, i intend to put my drawing code in the various dialog.cpp files and call my those drawing fucntions in the onpaint(), is it the right approach? will appreciate if anyone can help

    C / C++ / MFC help question c++ graphics learning
  • Login

  • Don't have an account? Register

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