Solved

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

Posted on 1999-01-12
5
166 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 1

Accepted Solution

by:
arunprakash earned 100 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

730 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