Click here to Skip to main content
15,912,977 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionFuction prototype in .C or .H Pin
krishnakumar7514-Jun-07 2:06
krishnakumar7514-Jun-07 2:06 
AnswerRe: Fuction prototype in .C or .H Pin
James R. Twine14-Jun-07 2:18
James R. Twine14-Jun-07 2:18 
AnswerRe: Fuction prototype in .C or .H Pin
Russell'14-Jun-07 4:15
Russell'14-Jun-07 4:15 
QuestionDrawing a text over a picture control Pin
eli1502197914-Jun-07 1:31
eli1502197914-Jun-07 1:31 
AnswerRe: Drawing a text over a picture control Pin
shiraztk14-Jun-07 7:29
shiraztk14-Jun-07 7:29 
AnswerRe: Drawing a text over a picture control Pin
Mark Salsbery14-Jun-07 7:40
Mark Salsbery14-Jun-07 7:40 
GeneralRe: Drawing a text over a picture control Pin
eli1502197915-Jun-07 1:16
eli1502197915-Jun-07 1:16 
GeneralRe: Drawing a text over a picture control Pin
Mark Salsbery15-Jun-07 6:05
Mark Salsbery15-Jun-07 6:05 
eli15021979 wrote:
How can I do it during run time(should I draw the bitmap by myself,or maybe attach
the bitmap in design time and only change the declaration of that control ,


You can use the CStatic::SetBitmap() method to set the control's bitmap.

You'll need the bitmap to set, and how you get that depends on where it is.

If it's a resource, the CBitmap class' CBitmap::LoadBitmap() method or the
Image::LoadFromResource() method will do it.

If it's a JPEG, GIF, BMP, or PNG file, you could use CImage::Load().

eli15021979 wrote:
do you know where can I find a tutorial about the messages and
windows events sequence?)


I wish I had specific links but I don't, sorry Smile | :) The book "Programming Windows" by Charles
Petzold is a classic text for Windows fundamentals.
The Platform SDK has details on every Windows message. For example, the WM_CTLCOLORxxx messages
state "is sent to the parent window of a button before drawing the button".

Cheers! Smile | :)
Mark


"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

AnswerRe: Drawing a text over a picture control Pin
tyagineha14-Jun-07 18:05
tyagineha14-Jun-07 18:05 
GeneralRe: Drawing a text over a picture control Pin
Hamid_RT14-Jun-07 19:57
Hamid_RT14-Jun-07 19:57 
AnswerRe: Drawing a text over a picture control Pin
Hamid_RT14-Jun-07 19:56
Hamid_RT14-Jun-07 19:56 
QuestionProperty sheets Pin
rajeevktripathi14-Jun-07 1:23
rajeevktripathi14-Jun-07 1:23 
AnswerRe: Property sheets Pin
James R. Twine14-Jun-07 1:57
James R. Twine14-Jun-07 1:57 
QuestionRe: Property sheets Pin
rajeevktripathi19-Jun-07 20:10
rajeevktripathi19-Jun-07 20:10 
AnswerRe: Property sheets Pin
James R. Twine19-Jun-07 23:58
James R. Twine19-Jun-07 23:58 
QuestionCListctrl Pin
mehrdadov14-Jun-07 1:14
mehrdadov14-Jun-07 1:14 
AnswerRe: CListctrl Pin
Naveen14-Jun-07 1:28
Naveen14-Jun-07 1:28 
AnswerRe: CListctrl Pin
Arman S.14-Jun-07 2:11
Arman S.14-Jun-07 2:11 
QuestionSendMessage crashes Pin
Wim Engberts14-Jun-07 1:05
Wim Engberts14-Jun-07 1:05 
GeneralRe: SendMessage crashes Pin
Matthew Faithfull14-Jun-07 1:42
Matthew Faithfull14-Jun-07 1:42 
AnswerRe: SendMessage crashes Pin
James R. Twine14-Jun-07 1:44
James R. Twine14-Jun-07 1:44 
QuestionRegarding Dependency files in MFC Pin
trinadh_t14-Jun-07 1:00
trinadh_t14-Jun-07 1:00 
AnswerRe: Regarding Dependency files in MFC Pin
_AnsHUMAN_ 14-Jun-07 1:26
_AnsHUMAN_ 14-Jun-07 1:26 
GeneralRe: Regarding Dependency files in MFC Pin
trinadh_t14-Jun-07 2:33
trinadh_t14-Jun-07 2:33 
GeneralRe: Regarding Dependency files in MFC Pin
_AnsHUMAN_ 14-Jun-07 3:15
_AnsHUMAN_ 14-Jun-07 3:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.