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

C / C++ / MFC

 
AnswerRe: Help mapping & updating xml files data to tables of MS Access database through vc++ Pin
_AnsHUMAN_ 15-May-06 17:46
_AnsHUMAN_ 15-May-06 17:46 
GeneralRe: Help mapping & updating xml files data to tables of MS Access database through vc++ Pin
nrj2315-May-06 18:32
nrj2315-May-06 18:32 
GeneralRe: Help mapping & updating xml files data to tables of MS Access database through vc++ Pin
nrj2316-May-06 20:25
nrj2316-May-06 20:25 
GeneralRe: Help mapping & updating xml files data to tables of MS Access database through vc++ Pin
_AnsHUMAN_ 16-May-06 20:36
_AnsHUMAN_ 16-May-06 20:36 
GeneralRe: Help mapping & updating xml files data to tables of MS Access database through vc++ Pin
nrj2316-May-06 21:00
nrj2316-May-06 21:00 
GeneralRe: Help mapping & updating xml files data to tables of MS Access database through vc++ Pin
_AnsHUMAN_ 16-May-06 21:06
_AnsHUMAN_ 16-May-06 21:06 
AnswerRe: Help mapping & updating xml files data to tables of MS Access database through vc++ Pin
nrj2315-May-06 20:43
nrj2315-May-06 20:43 
Questionhow to create a transparent Edit control on a CWnd object, while not a CDialog object? Pin
samfromcn15-May-06 15:55
samfromcn15-May-06 15:55 
I want to create a transparent RichEdit control, and find many example use follow code in parent dialog class:

HBRUSH CParentDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);

if((nCtlColor == CTLCOLOR_EDIT) && (pWnd->GetDlgCtrlID()==IDC_MYRICHEDIT))
{
pDC->SetBkMode(TRANSPARENT);
pDC->SetTextColor(RGB(255,0,0));
return HBRUSH(GetStockObject(HOLLOW_BRUSH));
}
}

It does not work in my application. I think maybe because which I create is CRichEditCtrl while those example create CEdit, or maybe because my parent window is CWnd class while those example use CDialog class.

Anyone can tell me what the problem is, and how to fix it? help me create a transparent RichEdit control successfully, thanks a lot.Confused | :confused:
AnswerRe: how to create a transparent Edit control on a CWnd object, while not a CDialog object? Pin
NiceNaidu15-May-06 18:41
NiceNaidu15-May-06 18:41 
GeneralRe: how to create a transparent Edit control on a CWnd object, while not a CDialog object? Pin
samfromcn16-May-06 16:25
samfromcn16-May-06 16:25 
QuestionCreate a Window on the Desktop (that replaces the background image, behind the icons) Pin
ghudo15-May-06 15:53
ghudo15-May-06 15:53 
QuestionHTML Help Pin
tigre21515-May-06 14:46
tigre21515-May-06 14:46 
AnswerRe: HTML Help Pin
led mike15-May-06 18:07
led mike15-May-06 18:07 
GeneralRe: HTML Help Pin
NiceNaidu15-May-06 18:46
NiceNaidu15-May-06 18:46 
QuestionHow to set an image to the tree sub item! Pin
M_Nuaimi15-May-06 13:22
M_Nuaimi15-May-06 13:22 
AnswerRe: How to set an image to the tree sub item! Pin
huutribk200115-May-06 20:38
huutribk200115-May-06 20:38 
AnswerRe: How to set an image to the tree sub item! Pin
ThatsAlok15-May-06 22:50
ThatsAlok15-May-06 22:50 
Questionusing C# dll Pin
pnpfriend15-May-06 11:25
pnpfriend15-May-06 11:25 
AnswerRe: using C# dll Pin
InOut.NET15-May-06 11:47
InOut.NET15-May-06 11:47 
QuestionNew Document in MDI application Pin
AllAtSea15-May-06 11:18
AllAtSea15-May-06 11:18 
AnswerRe: New Document in MDI application Pin
georgeraafat15-May-06 14:44
georgeraafat15-May-06 14:44 
QuestionCOM DLL not returning from registration Pin
Dave_Roach15-May-06 9:39
Dave_Roach15-May-06 9:39 
QuestionRe: COM DLL not returning from registration Pin
David Crow15-May-06 10:21
David Crow15-May-06 10:21 
AnswerRe: COM DLL not returning from registration Pin
Dave_Roach15-May-06 10:36
Dave_Roach15-May-06 10:36 
QuestionRe: COM DLL not returning from registration Pin
David Crow16-May-06 2:33
David Crow16-May-06 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.