Hi, I have one dialog base application. It contains list control having some data in report view. After double clicking on it a new modeless dialog gets opened. It contains edit controls which contains data of list control's selected row. If i edit data in edit controls and press OK then data in list control should get updated with newly updated data. My problem is how I pass updated data to list control of parent dialog. I am using Microsoft Visual studio 6.0. Regards Nikesh
Nikesh Jagtap
Posts
-
Dialog base application -
List control in MFCHi, I have a dialog box application. It contains one list control (CListCtrl). It filled with some data. After double clicking on any row of it new modeless dialog gets opened. My problem is after opening new modeless dialog box, the main dialog box's row on which i have double clicked should remain selected means display it partially that it is selected. So the user can see on which row he has double clicked previously though a modeless dialog box is opened. If have any idea please reply. Thanks in advance. Regards Rajendra
-
Vector ErrorI have wrote one program which deletes the elements from first vector 'v1' which are not in another vector 'v3'. At the deleting time i also want to delete that same index element from vector v2. Eg. The 3 value of 'v3' is not present in 'v1', so i want to delete value 3 from 'v1' and value 7 of index 2 (if we consider 0 based index) from 'v2'. But it goes crash at some point. When you see program you get clear with this thing. I am using Microsoft Visual Studio 6.0 editor. The code snippet is as #include "stdafx.h" #include #include #include int main( ) { using namespace std; vector v1,v2,v3; vector ::iterator result; v1.push_back( 1 ); v1.push_back( 2 ); v1.push_back( 3 ); v1.push_back( 4 ); v2.push_back( 7 ); v2.push_back( 7 ); v2.push_back( 7 ); v2.push_back( 7 ); v3.push_back( 1 ); v3.push_back( 2 ); vector ::iterator V1Startitr = v1.begin(); vector ::iterator V1Enditr = v1.end(); vector ::iterator V2Startitr = v2.begin(); vector ::iterator V2Enditr = v2.end(); for(V1Startitr, V2Startitr; V1Startitr != V1Enditr; V1Startitr++,V2Startitr++) { result = find(v3.begin(),v3.end(),*V1Startitr); if(result == v3.end()) { cout<
-
ArrayWhy array starts with zero? Best wishes Nikesh
-
truncating file size using _chsize in CFor trancating file size using: int _chsize( int fd, long size); require to provide parameter "int fd" i.e. file descriptor. How to provide file descriptor?
-
Truncating size of file using _chsize()For trancating file size using: int _chsize( int fd, long size); require to provide parameter "int fd" i.e. file descriptor. How to provide file descriptor?
-
Conversion of DWORD to timeI have a DWORD and i want to convert it into a time format. Eg. DWORD is = 41107ECE I want it should be in format as = 2004/08/04 Wed 06:14:38 UTC How can I do this conversion? Plz help me. Regards Nikesh
-
GridView hyperlinkHello, I am using Microsoft Visual Studio 2008. I am creating one website using ASP.net with C#. I have taken one GridView control. In that I am adding 2 columns & bind them to the mysql database. When mouse cursor moves to the records in the gridview then records turn in to hyperlink record. I do this thr' following code e.Row.Attributes["onmouseover"] = "this.style.cursor='hand';this.style.textDecoration='underline'"; e.Row.Attributes["onmouseout"] = "this.style.textDecoration='none';"; My problem is i want when we click on the specific record/row then one columns that record should get display in TextBox & next columns selected record get display in DropDownList contrl. So how can i achieve it? Thanks in advance Nikesh
-
Scroll view background colorI am using Microlsoft Visual Studio 6.00. I am creating a new frame using CreateNewFrame(). At the time of creation of class I derive the class from CScrollView. I want to paint the background of the view with some color. So I am using SetBkColor as pDC->SetBkColor(RGB(255,0,0)) Here 'pDC' is of OnDraw() method. But it can't work. Plz tell me how can I paint the background window. Regards Nikesh
-
How to close the window?I have created an MDI application. In that I am creating new window. I want functionality as after left clicking of mouse on view that window should be closed. My problem is, how can I close the window after left click on that created window. Thanks in advance Nikesh
-
How to close the window?I am using Microsoft Visual Studio 6.00. I have created an MDI application. In that I am creating new window. I want functionality as after left clicking of mouse on view that window should be closed. So how can I sort out this problem? Thanks in advance Nikesh
-
Mouse rotating knob messageI am using Microsoft Visual Studio 6.00. I derive a class from CScrollView. I have a scrollbar at view. After moving scrollbar I am take care of SB_LINEDOWN, SB_LINEUP, SB_PAGEDOWN, SB_PAGEUP messages. But when I rotate my mouse knob then scrollbar also gets moved. My problem is I don't want to move scrollbar though I am rotating mouse knob. Which message is passed when we rotate mouse knob? Thanks in advance Nikesh
-
CListCtrl::InsertColumnHello, I have taken a List Ctrl on a dialog box. I have to add 3 subcolumns below the column. I m using InsertColumn method for adding new column but for adding subcolumn, I don't know how to pass 'nSubItem' parameter. Plz tell me how to pass 'nSubItem' parameter? I m using Microsoft Visual Studio 6.00 Thands in advance Nikesh
-
Singleton classWhat is a singleton class? Plz explain me with a suitable example. Thanks in advance Rajendra
-
difference between CreateThread & AfxBeginThreadI wanted to know what is difference between CreateThread & AfxBeginThread while creating thread? Thanks in advance Nikesh
-
Release memory using 'delete' operator for 2 dimensional arrayI want to release memory for int a[4][6] which is allocated dynamically. I m allocating this memory as for(int i = 0;i<4; i++) { a[i] = new int [6]; } And deallocating it as for(int j = 0; j<4; j++) { delete []a[i]; } Is the way of allocating & deallocating memory is right or not? Thanks in advance. Regards Nikesh
-
Release memory using 'delete' operator for 2 dimensional arrayI want to release memory for int a[4][6] which is allocated dynamically. I m allocating this memory as for(int i = 0;i<4; i++) { a[i] = new int [6]; } And deallocating it as for(int j = 0; j<4; j++) { delete []a[i]; } Is the process of allocating & deallocating memory is right or not? Thanks in advance. Regards Nikesh
-
Executing program error.Hello, I m using Microsoft Visual Studio 6.0 editor. When I build my application and when I Execute (ctrl + F5) my application then again a build dialog box is get displayed (which is displayed during Build (F7) the application) & it ask me for build the application (having option Yes, No, Cancel). Date and time set correctly on my machine. It rebuilding just a subset of files. And same files ask for build each time. I 'Clean' the application & then Rebuild it, then also this problem continues. Also I delete the 'Debug' folder from the current directory & then Rebuild application then also that problem is not solved. Plz give me solution. Thanks in advance.
-
Execute Program errorDate and time set correctly on my machine. It rebuilding just a subset of files. And same files ask for build each time. Regards Nikesh
-
Execute Program errorHello, I m using Microsoft Visual Studio 6.0 editor. When I build my application and when I Execute (ctrl + F5) my application then again a build dialog box is get displayed (which is displayed during Build (F7) the application) & it ask me for build the application (having option Yes, No, Cancel). I 'Clean' the application & then Rebuild it, then also this problem continues. Also I delete the 'Debug' folder from the current directory & then Rebuild application then also that problem is not solved. Plz give me solution. Thanks in advance. Regards Nikesh.