Click here to Skip to main content
15,908,843 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: C++ Exception Pin
Russell'15-Jun-07 3:19
Russell'15-Jun-07 3:19 
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 
Hi Mark,

Thanks for your detailed explanation.

Mark Salsbery wrote:
OnCtlColor() is called before the control draws itself so if you draw text there it will be
drawn "under" the control, as you are seeing.


I didn't knew that....D'Oh! | :doh: (do you know where can I find a tutorial about the messages and
windows events sequence?)


Mark Salsbery wrote:
You could derive your own picture box class from CStatic and make your m_AtolCorridorBitmap a
variable of that type.
add a WM_PAINT handler to the class. In the OnPaint() implementation, after calling the base
class' OnPaint(), draw your text in the client area of the picture box.


This is just what I'm going to try....
Just one more question:
In design time I can attach a bitmap resource to the picture control.
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 , i.e will it save
the properties I gave it in design time??)

Thanks again,
Eli
GeneralRe: Drawing a text over a picture control Pin
Mark Salsbery15-Jun-07 6:05
Mark Salsbery15-Jun-07 6:05 
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 

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.