Click here to Skip to main content
16,018,158 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Automatic Scrolling in a list box? Pin
Anonymous Dave8-Aug-02 10:04
sussAnonymous Dave8-Aug-02 10:04 
QuestionLines of code in Visual C++ project? Pin
Aaron Schaefer8-Aug-02 8:08
Aaron Schaefer8-Aug-02 8:08 
AnswerRe: Lines of code in Visual C++ project? Pin
Chris Richardson8-Aug-02 8:24
Chris Richardson8-Aug-02 8:24 
GeneralRe: Lines of code in Visual C++ project? Pin
Aaron Schaefer8-Aug-02 8:39
Aaron Schaefer8-Aug-02 8:39 
GeneralSubmenu :: MFC Pin
valikac8-Aug-02 7:52
valikac8-Aug-02 7:52 
GeneralRe: Submenu :: MFC Pin
User 66588-Aug-02 10:36
User 66588-Aug-02 10:36 
GeneralRe: Submenu :: MFC Pin
valikac8-Aug-02 13:25
valikac8-Aug-02 13:25 
GeneralRe: Submenu :: MFC Pin
Cyclist8-Aug-02 17:31
Cyclist8-Aug-02 17:31 
First,You can create one in resource editor,then you add handler to each option by Class Wizard.
Second,you can create the submenu dynamicly like below:
CMenu popMenu;
popMenu.AppendMenu(MF_STRING,ID,string);
CPoint pt;
::GetCursorPos(&pt);
popMenu.TrackPopupMenu(.......);

If you do it by first point above,Class Wizard will know
what option the user selects,and call the related handler.
Or you can just do like below:
int id=popMenu.TrackPopupMenu(......);
//id is the ID of the menu option selected
if(id==...)
{
//do you want to do
}
if(id==....)
{
//do you want to do;)
}

GeneralRe: Submenu :: MFC Pin
valikac9-Aug-02 5:03
valikac9-Aug-02 5:03 
GeneralDialog Boxes connection w/ CDocument Pin
RalfPeter8-Aug-02 6:22
RalfPeter8-Aug-02 6:22 
GeneralRe: Dialog Boxes connection w/ CDocument Pin
Tomasz Sowinski8-Aug-02 6:56
Tomasz Sowinski8-Aug-02 6:56 
GeneralDisabling existing controls in a dialog Pin
Luis E. Cuadrado8-Aug-02 5:26
Luis E. Cuadrado8-Aug-02 5:26 
GeneralRe: Disabling existing controls in a dialog Pin
Tomasz Sowinski8-Aug-02 5:36
Tomasz Sowinski8-Aug-02 5:36 
GeneralRe: Disabling existing controls in a dialog Pin
Luis E. Cuadrado8-Aug-02 5:46
Luis E. Cuadrado8-Aug-02 5:46 
GeneralRe: Disabling existing controls in a dialog Pin
Tomasz Sowinski8-Aug-02 5:54
Tomasz Sowinski8-Aug-02 5:54 
GeneralRe: Disabling existing controls in a dialog Pin
Renjith Ramachandran8-Aug-02 7:46
Renjith Ramachandran8-Aug-02 7:46 
GeneralRe: Disabling existing controls in a dialog Pin
Luis E. Cuadrado8-Aug-02 7:56
Luis E. Cuadrado8-Aug-02 7:56 
GeneralRe: Disabling existing controls in a dialog Pin
Luis E. Cuadrado8-Aug-02 9:18
Luis E. Cuadrado8-Aug-02 9:18 
Questionhow do they know if those IDs are correct or not? Pin
includeh108-Aug-02 5:10
includeh108-Aug-02 5:10 
AnswerRe: how do they know if those IDs are correct or not? Pin
Ravi Bhavnani8-Aug-02 5:19
professionalRavi Bhavnani8-Aug-02 5:19 
GeneralRe: how do they know if those IDs are correct or not? Pin
includeh108-Aug-02 5:38
includeh108-Aug-02 5:38 
QuestionASSERT(::IsWindow(m_hWnd)) --when? Pin
JennyP8-Aug-02 5:12
JennyP8-Aug-02 5:12 
AnswerRe: ASSERT(::IsWindow(m_hWnd)) --when? Pin
Ravi Bhavnani8-Aug-02 5:17
professionalRavi Bhavnani8-Aug-02 5:17 
AnswerRe: ASSERT(::IsWindow(m_hWnd)) --when? Pin
Renjith Ramachandran8-Aug-02 8:27
Renjith Ramachandran8-Aug-02 8:27 
GeneralSecond Dialog referring to First Dialog Class Member Pin
Xtorpia8-Aug-02 4:40
Xtorpia8-Aug-02 4:40 

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.