Use GetFirstSelectedItemPosition and GetNextSelectedItem
Dreamz
Posts
-
How to read data from a gridline -
GetComputerNameExWhy not GetComputerName?
-
recursive functions [modified]Assignment questions? :cool:
-
Replacing my Menu with Default Menu of CFomViewIf you want to change the toolbar also, then in CMainFrame::OnCreate() replace IDR_MAINFRAME with your toolbar ID. Eg:
if (!m_wndToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP | CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) || !m_wndToolBar.LoadToolBar(IDR_TOOLBAR1)) { TRACE0("Failed to create toolbar\n"); return -1; // fail to create }
-
Replacing my Menu with Default Menu of CFomViewCSingleDocTemplate* pDocTemplate; pDocTemplate = new CSingleDocTemplate( //IDR_MAINFRAME, Comment this IDR_MENU1, //Give your menu' ID RUNTIME_CLASS(CXXXDoc), RUNTIME_CLASS(CMainFrame), // main SDI frame window RUNTIME_CLASS(CXXXView)); AddDocTemplate(pDocTemplate);
-
Related to edit boxesTaruni wrote:
I will enter only numbers and not character type data.
Then why CString? ;)
-
menu item with imageI think the link that i provided itself has a dialog based sample..
-
menu item with imageCheck this. CP - Menus section you can find many articles on this.
-
m_slider.SetSelection(3,7);Have you selected the EnableSelection property of Slider conrol?
-
hello,Just try something yourself, post your doubts when you get stuck somewhere. Then all can help you better. Good Luck...
-
How to setrange of spin controlCan you please make it a little more clear what exactly you did in OnInitDialog() ?
-
i want to use menu in dialog box.Yes :)
-
i want to use menu in dialog box.1. Create a Menu Eg:IDR_MENU1 2. Open Dialog properties 3. Select IDR_MENU1 in Menu property.
-
what type of projectMain classes used in different types of application in the project workspace you can see - Dialog Based: CXXXDlg - Derived from CDialog CXXXApp - Derived from CWinApp Single Document Interface: CXXXDoc - Derived from CDocument CXXXView - Derived from CView CMainFrame - Derived from CFrameWnd CXXXApp - Derived from CWinApp Uses CSingleDocTemplate Multiple Document Interface: CXXXDoc - Derived from CDocument CXXXView - Derived from CView CMainFrame - Derived from CMDIFrameWnd CChildFrame - Derived from CMDIChildWnd CXXXApp - Derived from CWinApp Uses CMultiDocTemplate
-
Get number of days used -
Auto UnInstall after specified time -
output to CSV fileAre you using MFC? Then go though the class CStdioFile, which gives easy functions to read and write text files.
-
newfile , new window in MDIFile -> New New Document New View Window -> New Same Document New View
-
how to indicate Sort icon in the list control on column header -
Problems writting in a spesific font