I have a dialog box which has several buttons. In the background (behind the buttons) is a bitmap.
To reduce the size of the app, I would like to load the bitmap once the app has started (keeping it behind the buttons). I would also like to change the bitmap to a different one in response to events that occur in the program. How can I do this?
You can use LoadImage to load a bitmap, or GDI+ to load a jpg, etc. Then, you just draw it on the back of your dialog as you are now, and reload it according to your events, or store the base image path in a config file.
The reason I want to do this is that the executable is running on a remote machine, which (if I do any alterations on the app) I will be updating over a telephone line. If the exe is large it can take for ever to download, hence trying to remove the bitmap from the file and storing it on the remote machine so I only have to download it the once.
Now, to look at the MSDN examples - Ive been away from my PC for a day or two!
Remove the window styles (SetWindowLong(hwnd,GWL_STYLE,GetWindowLong(hwnd,GWL_STYLE)&~WS_BORDER);) for frames WS_BORDER, WS_DLGFRAME, WS_THICKFRAME etc. or call the CreateWindowEx() without these styles.
I have an MFC application in which I take records from a table in one database (Let's say database A, table A), and insert them into a table in another database (Let's say database B, table B). This is a sort of "database conversion".
The thing is, that in database A the record numbers are not necessarily consecutive (for instance there could be records #1,2 and 4), But in database B the records are inserted to table B with an automatic record number.
Table A (Database A) Table B (Database B)
record #1 ------------> record #1
record #2 ------------> record #2
record #4 ------------> record #3
My problem is that I need to save the record numbers of the records in database/table A, in order to use them later (for database relationship purposes).
(For instance - i need to know that record #3 in database B was actually record #4 in database A).
I used a CArray object to keep the indexes of the records of database/table A, but after I do the "database conversion" I need to use the indexes (of database A) in another application. how can I do this?
By the way, I am using C++ (and MFC) in .Net 2003.
Hello all friends,
I Start to use Visuall Studio .Net 2005(about 40 minutes)
But I open my project in the viuall c
First the project converted to visuall 2005 It's not problem(good)
Now why in the compile my project many errors(terrible)
But in the visuall .Net 2003 it's without errors, then project is created