Click here to Skip to main content
16,011,447 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow can i merge a Dialog app with a SDI app ? Pin
Manea Cornel12-Sep-05 2:45
Manea Cornel12-Sep-05 2:45 
AnswerRe: how can i merge a Dialog app with a SDI app ? Pin
Niklas L12-Sep-05 2:58
Niklas L12-Sep-05 2:58 
GeneralRe: how can i merge a Dialog app with a SDI app ? Pin
Manea Cornel12-Sep-05 3:50
Manea Cornel12-Sep-05 3:50 
QuestionHow to open a new document (MDI app) in the background Pin
Taka Muraoka12-Sep-05 1:44
Taka Muraoka12-Sep-05 1:44 
AnswerRe: How to open a new document (MDI app) in the background Pin
prasad_som12-Sep-05 20:20
prasad_som12-Sep-05 20:20 
GeneralRe: How to open a new document (MDI app) in the background Pin
Taka Muraoka13-Sep-05 1:20
Taka Muraoka13-Sep-05 1:20 
QuestionMFC Group box Pin
shijuck12-Sep-05 1:44
shijuck12-Sep-05 1:44 
AnswerRe: MFC Group box Pin
toxcct12-Sep-05 1:53
toxcct12-Sep-05 1:53 
as it is not VB, you cannot act directly on all the controls of a group box by setting its property to hide/show. you can however write a function which will do the job, and then, call the function once.

there is anyway one bad method which need you to set the controls IDs consecutive, and then making something like this :
<font color=blue>void</font> MyGroupBox::theFunction(<font color=blue>int</font> newState) {
    <font color=green>//newState must be SW_SHOW, SW_HIDE or a valid window state</font>
    <font color=blue>int</font> iFirstId =  <font color=purple>IDC_CONTROL_1</font>;
    <font color=blue>int</font> iLastId  =  <font color=purple>IDC_CONTROL_N</font>;
 
    <font color=blue>for</font> (<font color=blue>int</font> i = iFirstId; i < iLastId; i++) {
        ((CWnd*)GetDlgItem(i))->ShowWindow(newState);
    }
}



TOXCCT >>> GEII power
[toxcct][VisualCalc]
AnswerRe: MFC Group box Pin
Niklas L12-Sep-05 2:53
Niklas L12-Sep-05 2:53 
AnswerRe: MFC Group box Pin
David Crow12-Sep-05 3:08
David Crow12-Sep-05 3:08 
QuestionCompilation Error From VC 6.0 to VC 7.1 Pin
Identity Undisclosed12-Sep-05 1:37
Identity Undisclosed12-Sep-05 1:37 
AnswerRe: Compilation Error From VC 6.0 to VC 7.1 Pin
toxcct12-Sep-05 1:44
toxcct12-Sep-05 1:44 
GeneralRe: Compilation Error From VC 6.0 to VC 7.1 Pin
Identity Undisclosed12-Sep-05 20:00
Identity Undisclosed12-Sep-05 20:00 
QuestionWMI,IPAddress,SubnetMask setting! Doesn't work. Pin
Tcpip200512-Sep-05 1:36
Tcpip200512-Sep-05 1:36 
AnswerRe: WMI,IPAddress,SubnetMask setting! Doesn't work. Pin
Tcpip200512-Sep-05 1:39
Tcpip200512-Sep-05 1:39 
QuestionVolume Control through program.... Pin
ashwath200512-Sep-05 1:17
ashwath200512-Sep-05 1:17 
AnswerRe: Volume Control through program.... Pin
David Crow12-Sep-05 3:10
David Crow12-Sep-05 3:10 
QuestionRe: Volume Control through program.... Pin
ashwath200512-Sep-05 4:29
ashwath200512-Sep-05 4:29 
AnswerRe: Volume Control through program.... Pin
David Crow12-Sep-05 4:39
David Crow12-Sep-05 4:39 
GeneralRe: Volume Control through program.... Pin
ashwath200512-Sep-05 18:33
ashwath200512-Sep-05 18:33 
GeneralRe: Volume Control through program.... Pin
David Crow19-Sep-05 7:25
David Crow19-Sep-05 7:25 
Questionpassing reference to vector in dll function Pin
Anonymous12-Sep-05 1:15
Anonymous12-Sep-05 1:15 
AnswerRe: passing reference to vector in dll function Pin
ab8lam12-Sep-05 1:49
ab8lam12-Sep-05 1:49 
AnswerRe: passing reference to vector in dll function Pin
Nemanja Trifunovic12-Sep-05 2:17
Nemanja Trifunovic12-Sep-05 2:17 
QuestionGraphics.MeasureString word wrap problem Pin
Kramer_198212-Sep-05 1:13
Kramer_198212-Sep-05 1:13 

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.