Click here to Skip to main content
14,977,142 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: IOCTL_STORAGE_EJECTION_CONTROL undeclared identifier Pin
kakan17-May-06 20:41
professionalkakan17-May-06 20:41 
AnswerRe: IOCTL_STORAGE_EJECTION_CONTROL undeclared identifier Pin
Hamid_RT17-May-06 20:53
MemberHamid_RT17-May-06 20:53 
GeneralRe: IOCTL_STORAGE_EJECTION_CONTROL undeclared identifier Pin
velayudhan_raj17-May-06 21:03
Membervelayudhan_raj17-May-06 21:03 
GeneralRe: IOCTL_STORAGE_EJECTION_CONTROL undeclared identifier Pin
Hamid_RT17-May-06 21:07
MemberHamid_RT17-May-06 21:07 
AnswerRe: IOCTL_STORAGE_EJECTION_CONTROL undeclared identifier Pin
Laxman Auti17-May-06 21:08
MemberLaxman Auti17-May-06 21:08 
GeneralRe: IOCTL_STORAGE_EJECTION_CONTROL undeclared identifier Pin
velayudhan_raj17-May-06 21:23
Membervelayudhan_raj17-May-06 21:23 
QuestionHow to draw a border color to static Frame control in C++ Pin
huutribk200117-May-06 20:09
Memberhuutribk200117-May-06 20:09 
AnswerRe: How to draw a border color to static Frame control in C++ Pin
Nishad S17-May-06 21:14
MemberNishad S17-May-06 21:14 
If this is code, it will not work!

I assume that you are talking about the GroupBox...

Because the in OnInitDialog you are trying to draw the border, but do you know that the window is hidden at that time. You have to write the drawing code in OnPaint, which is called every time the window needs to be repainted.

Moreover it is not good practice to draw the control from another window. So I suggest you that you should derive a class from CStatic and write the code to draw the border inside it. Then create the member variable from this new class.

- NS -
GeneralRe: How to draw a border color to static Frame control in C++ Pin
Hamid_RT17-May-06 21:18
MemberHamid_RT17-May-06 21:18 
GeneralRe: How to draw a border color to static Frame control in C++ Pin
Nishad S17-May-06 21:20
MemberNishad S17-May-06 21:20 
GeneralRe: How to draw a border color to static Frame control in C++ Pin
Hamid_RT17-May-06 21:25
MemberHamid_RT17-May-06 21:25 
GeneralRe: How to draw a border color to static Frame control in C++ Pin
Nishad S17-May-06 21:28
MemberNishad S17-May-06 21:28 
AnswerRe: How to draw a border color to static Frame control in C++ Pin
Hamid_RT17-May-06 21:23
MemberHamid_RT17-May-06 21:23 
AnswerRe: How to draw a border color to static Frame control in C++ Pin
Nishad S17-May-06 22:21
MemberNishad S17-May-06 22:21 
GeneralRe: How to draw a border color to static Frame control in C++ Pin
huutribk200117-May-06 22:31
Memberhuutribk200117-May-06 22:31 
Questionhow to make Applications exe to run in WINNT Pin
code6617-May-06 20:06
Membercode6617-May-06 20:06 
Questionno private no protected oops only public Pin
pathakr17-May-06 20:04
Memberpathakr17-May-06 20:04 
AnswerRe: no private no protected oops only public Pin
_AnsHUMAN_ 17-May-06 20:07
Member_AnsHUMAN_ 17-May-06 20:07 
AnswerRe: no private no protected oops only public Pin
Sarath C17-May-06 20:13
MemberSarath C17-May-06 20:13 
AnswerRe: no private no protected oops only public Pin
Laxman Auti17-May-06 20:23
MemberLaxman Auti17-May-06 20:23 
GeneralRe: no private no protected oops only public Pin
ppatel56717-May-06 20:40
Memberppatel56717-May-06 20:40 
JokeRe: no private no protected oops only public Pin
Laxman Auti17-May-06 20:47
MemberLaxman Auti17-May-06 20:47 
AnswerRe: no private no protected oops only public Pin
ThatsAlok17-May-06 20:38
MemberThatsAlok17-May-06 20:38 
AnswerRe: no private no protected oops only public Pin
Stephen Hewitt17-May-06 21:05
MemberStephen Hewitt17-May-06 21:05 
Questionhow to write a string to my picture which is maintained by a Bitmap(GDI+) object? Pin
samfromcn17-May-06 19:51
Membersamfromcn17-May-06 19:51 

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.