Click here to Skip to main content
15,889,595 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Visual C++(MFC) or Visual C++/CLI [modified] Pin
CODEPC19-Jan-10 7:52
CODEPC19-Jan-10 7:52 
GeneralRe: Visual C++(MFC) or Visual C++/CLI Pin
Rajesh R Subramanian19-Jan-10 7:58
professionalRajesh R Subramanian19-Jan-10 7:58 
GeneralRe: Visual C++(MFC) or Visual C++/CLI Pin
CPallini19-Jan-10 10:40
mveCPallini19-Jan-10 10:40 
GeneralRe: Visual C++(MFC) or Visual C++/CLI Pin
Rolf Kristensen19-Jan-10 11:58
Rolf Kristensen19-Jan-10 11:58 
GeneralRe: Visual C++(MFC) or Visual C++/CLI Pin
Joe Woodbury19-Jan-10 11:52
professionalJoe Woodbury19-Jan-10 11:52 
GeneralRe: Visual C++(MFC) or Visual C++/CLI Pin
Rolf Kristensen19-Jan-10 12:03
Rolf Kristensen19-Jan-10 12:03 
GeneralRe: Visual C++(MFC) or Visual C++/CLI Pin
Steve Mayfield20-Jan-10 11:02
Steve Mayfield20-Jan-10 11:02 
QuestionProblems with OnNcCreate() Pin
mspb18-Jan-10 22:14
mspb18-Jan-10 22:14 
We are changing the style of our MFC app to be the "XP Style" - mainly this was done by setting the manifest using a #pragma comment in stdafx.h.

The problem we have is that edit fields created in Dialogs using the resource editor have a blue border to them, whereas dynamically-created ones have a black border. I had planned to get around this by subclassing CEdit and overriding OnNcPaint() and OnNcCreate().

The OnNcPaint() works fine - as the mouse passes over the entryfield the border colour is changed to the blue as required. However, the field is still initially created with the black border, so I had expected to also need to override OnNcCreate():

BOOL CXPEdit::OnNcCreate(LPCREATESTRUCT lpcs)
{
CEdit::OnNcCreate(lpcs);
OnNcPaint();
return TRUE;
}

However this doesn't seem to work. I do have the "ON_WM_NCCREATE()" and the method is definitely called, it just doesn't repaint the border. I tried adding Invalidate() and UpdateWindow() to no avail.

Any ideas?

Thanks

-M.
AnswerRe: Problems with OnNcCreate() Pin
KingsGambit18-Jan-10 23:39
KingsGambit18-Jan-10 23:39 
AnswerRe: Problems with OnNcCreate() Pin
mspb19-Jan-10 1:13
mspb19-Jan-10 1:13 
AnswerRe: Problems with OnNcCreate() Pin
Damir Valiulin20-Jan-10 18:46
Damir Valiulin20-Jan-10 18:46 
QuestionArranging desktop items Pin
Anu_Bala18-Jan-10 21:46
Anu_Bala18-Jan-10 21:46 
AnswerRe: Arranging desktop items Pin
Code-o-mat18-Jan-10 22:13
Code-o-mat18-Jan-10 22:13 
AnswerRe: Arranging desktop items Pin
Rolf Kristensen19-Jan-10 12:08
Rolf Kristensen19-Jan-10 12:08 
Questionเเปลง code นี้เป็นภาษษซีให้น่อยครับ Pin
beersaw18-Jan-10 20:41
beersaw18-Jan-10 20:41 
AnswerPlease read posting guidelines Pin
CPallini18-Jan-10 20:47
mveCPallini18-Jan-10 20:47 
AnswerRe: เเปลง code นี้เป็นภาษษซีให้น่อยครับ Pin
Sauce!18-Jan-10 20:47
Sauce!18-Jan-10 20:47 
AnswerRe: เเปลง code นี้เป็นภาษษซีให้น่อยครับ Pin
Adam Roderick J18-Jan-10 20:56
Adam Roderick J18-Jan-10 20:56 
QuestionLimit Maximizing window Pin
Anu_Bala18-Jan-10 17:37
Anu_Bala18-Jan-10 17:37 
AnswerRe: Limit Maximizing window Pin
Adam Roderick J18-Jan-10 18:04
Adam Roderick J18-Jan-10 18:04 
GeneralRe: Limit Maximizing window Pin
Anu_Bala18-Jan-10 23:17
Anu_Bala18-Jan-10 23:17 
Questionhook windows messages Pin
Sauce!18-Jan-10 16:58
Sauce!18-Jan-10 16:58 
AnswerRe: hook windows messages Pin
Covean18-Jan-10 21:21
Covean18-Jan-10 21:21 
GeneralRe: hook windows messages Pin
Sauce!18-Jan-10 22:57
Sauce!18-Jan-10 22:57 
QuestionMFC How to update CMDIChildWnd from CDocument Pin
baumchen18-Jan-10 14:20
baumchen18-Jan-10 14:20 

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.