Solved

Picture Control

Posted on 1998-11-11
2
159 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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

Title # Comments Views Activity
sumDigits challenge 9 170
sumHeights2  challenge 7 117
wordcount challenge 11 134
how to use laptop or pad camera in vb.net windows application 2 86
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

828 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