?
Solved

How do i load an Icon in a dialog based application.

Posted on 1999-01-12
5
Medium Priority
?
170 Views
Last Modified: 2010-04-02
i want to show the dialog based application on status bar.
I have declared a HICON protected member variable in the new created  dialog and used AfxGetApp->LoadIcon function ,
in the constructor and then SetIcon in the Initdialog function.
My application is visible in the status bar for the default
dialog box, as soon as i click ok button of first dialog , to load the next dialog, my dialog comes up but the application is not visible in the status bar.
Could u please help...
0
Comment
Question by:chari112598
  • 3
  • 2
5 Comments
 
LVL 1

Accepted Solution

by:
arunprakash earned 200 total points
ID: 1181932
Hi da.

        First check on the handler of the ok button whether ur closing the Dialog.
By default if u call the CDialog::OnOK() it will close the dialog.Then check the property of the dialog in the dialog editor. Set the style to Overlapped.
thanx,
bye
0
 

Author Comment

by:chari112598
ID: 1181933
I have changed the property of the second dialog to overlapped but it does not work.
I am calling the default CDialog::OnOk() to close the dialog .
0
 

Author Comment

by:chari112598
ID: 1181934
I checked ur suggestion but it does not work.

0
 
LVL 1

Expert Comment

by:arunprakash
ID: 1181935
hey i told to change the style for the main dialog and not the second dialog
0
 

Author Comment

by:chari112598
ID: 1181936
Its working fine even without making the first dialog style to overlapped.
Thank you very much.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question