|
I want to have a picture of type .bmp or .ico on my DialogBox. so how can i do that. Can anyone help me. Thanks in advance
Anil Jillella
|
|
|
|
|
On your dialog put picture frame left click than properties, select type (icom, bitmap)then select image (combo box offering you bitmaps or icons from res)!
Hope this was helpful!
|
|
|
|
|
thanks,i myself found the solution.
Anil Jillella
|
|
|
|
|
Add a static control on your dialog box using the resource editor, edit its properties, set its type to bitmap and specify the ID of the bitmap you want to use.
|
|
|
|
|
With a static control you also show jpg file.CStatic has a function
SetBitmap<code> that it gets a hbitmap you can use of CImage class for show jpg files on this control. <br />
<br />
<div class="ForumSig"><div style="padding: 0; margin: 0; background-color: rgba(170, 214, 255, 1); text-align: center; font-family: Arial; font-weight: bold; font-style: italic; font-size: 9pt"><br />
<div style="color: rgba(255, 255, 255, 1); width: 300px"><br />
<hr width="250" size="7">WhiteSky<hr width="220" size="7"></div></div></div>
|
|
|
|
|
AnyOne Give Demo Examples on Cfile
|
|
|
|
|
|
prefer ofstream to cfile. In both cases, try google.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Scroll up.
Thou will see a search box.
Enter "CFile" in the text box.
Press enter.
|
|
|
|
|
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
|
I am compile my project in VC++ 6.0. There is no error.After compile it shows:
Loaded 'ntdll.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\kernel32.dll', no matching symbolic information found.
Loaded 'D:\VMC PROJECTS SOURCE\VMC RnD Projects\GScannerAppSuite\VMCGScannerAppSuite\GridPenManager.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\user32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\gdi32.dll', no matching symbolic information found.
Loaded 'D:\VMC PROJECTS SOURCE\VMC RnD Projects\GScannerAppSuite\VMCGScannerAppSuite\ESCamLib.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\winmm.dll', no matching symbolic information found.
The thread 0xBAC has exited with code 0 (0x0).
The program 'D:\VMC PROJECTS SOURCE\VMC RnD Projects\GScannerAppSuite\VMCGScannerAppSuite\VMCGScannerAppSuite.exe' has exited with code 0 (0x0).
But program do not Run or execute.The interesting thing is that I am creating a new dialog based project as a same name "VMCGScannerAppSuite" the same thing is happened. But other project is running in VC++ 6.0 well.
can anyone tell me plz what happened....
|
|
|
|
|
Well, your application seems to start since it loads some required DLLs.
Try putting a breakpoint in InitInstance() , step through the code and see what happens.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
Nothing is happened. When I pressed F5 the previous message is shown in the
Output window.
|
|
|
|
|
What are the controls you are using on your dialog ? Please, list them completely. Are there any ActiveX control or such ?
If yes, did you call AfxEnableControlContainer() in your InitInstance ?
|
|
|
|
|
There is no ActiveX control.
yea I am calling AfxEnableControlContainer() in InitInstance();
|
|
|
|
|
Any custom controls ? If yes, check that the class name is correct.
|
|
|
|
|
There is no custom control.
Actually this project is running in other computer (WIN2000,XP).
But not mine.So there is no bugs in coding.
|
|
|
|
|
Did you use of CRichEditCtrl Class on your program?
|
|
|
|
|
No...CRichEditCtrl is used...
I have just create a new dialog based project named "VMCGScannerAppSuite".
Then just build and run the project...No control is used this project...
I am little bit worried about this type of problem. Some previous projects have the same problem which was okay some day before and some of them running well.
|
|
|
|
|
See this[^] thread does solve your problem?
|
|
|
|
|
Hi.
I have created a MDI with CFormview. I also have created a form in which I want to call from the menu. How do I call this form?
|
|
|
|
|
|
Hi.
Sorry if I didn't state the problem clearly. I have a similar problem.
I created MDI derived from CFormview. Now, I want to have a new view which I have managed to create by Insert -> Resource -> Dialog -> IDD_FORMVIEW. I have changed the ID to IDD_GRAPH.
MDI created 2 menus called IDR_MAINFRAME and IDR_CVTYPE. I have modified IDR_CVTYPE to create another menu entry called 'View'. Under 'View', there is a submenu called 'Graph'. When the user click 'Graph', I want a child window to open with the new view (IDD_GRAPH). The problem is what should I code for the new view (IDD_GRAPH) to open when 'Graph' is clicked?
|
|
|
|
|
Hi,
have you read the links I gave you??? I have there posted how to create/open/manage the new views.
I have a CScrollView to have the project, and when the user makes double click in one element. It then comes the new CFormView in another window to allow the entry of advanced parameters for this concrete element. I have 4 templates (1 CScroll, and 3 different CFormViews) but up to 48 new windows are possible (one per each possible element).
Take a look on the code of function "CreateOrActivateFrame ()". This is what I use to open or set focus to an already opened "secondary" view.
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
|
|
|
|