Solved

Picture Control

Posted on 1998-11-11
2
157 Views
Last Modified: 2013-11-20
How can I add a small logo to my Form View?

I want to add it to my resource list and display it
in OnInitDialog.

thanks
0
Comment
Question by:vinny5
2 Comments
 
LVL 2

Accepted Solution

by:
wyy_cq earned 70 total points
ID: 1324527
Use CStatic Class
in the init Dialog you add this (suppose you defined a instance
of CStatic which named staPic as a member of View Class)

InitDialog(...)
{
 staPic.Create(...);
 CBitmap bm;
 bm.LoadBitmap(IDB_LOGO);
 staPic.SetBitmap(bm.Detach());
}

0
 

Author Comment

by:vinny5
ID: 1324528
Damn... I thought I deleted this question.. oh well..
thanks I didnt know that you could do it that way.  i got it to work using the developer studio ide and adding a picture control to the form. My problem was that my .bmp wasnt 256 colors..  but it works now.

Im going tot give you the points anyways because its only fair.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how to monitor remote shell execution on linux 9 100
notReplace  challenge 53 131
maven archtype selection in eclipse 1 57
Making an alias 7 95
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

821 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