Click here to Skip to main content
15,904,503 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questiondeterminig virtual folders using PIDL Pin
sach!!30-Aug-06 19:38
sach!!30-Aug-06 19:38 
AnswerRe: determinig virtual folders using PIDL Pin
Hamid_RT30-Aug-06 21:49
Hamid_RT30-Aug-06 21:49 
GeneralRe: determinig virtual folders using PIDL Pin
sach!!30-Aug-06 22:53
sach!!30-Aug-06 22:53 
QuestionShow Desktop Problem which minmizes all the window Pin
payal33530-Aug-06 19:34
payal33530-Aug-06 19:34 
AnswerRe: Show Desktop Problem which minmizes all the window Pin
Waldermort30-Aug-06 20:04
Waldermort30-Aug-06 20:04 
GeneralRe: Show Desktop Problem which minmizes all the window Pin
payal33530-Aug-06 20:28
payal33530-Aug-06 20:28 
GeneralRe: Show Desktop Problem which minmizes all the window Pin
Waldermort30-Aug-06 20:52
Waldermort30-Aug-06 20:52 
QuestionProblem in Transparent Edit Control. Pin
uday kiran janaswamy30-Aug-06 19:23
uday kiran janaswamy30-Aug-06 19:23 
hi all,


In the OnPaint(...) event i am painting the Dialog as Black Color with every pixel PutPixel(...) with 15 * 15 (Horizontal and Vertical) Dots in entire Screen.

I want to create a Transparent EditControl when ever i am generate a LButton Click event, so that the Dots must be visible from the EditControl what i crated in LButtonDown(...) event.

i am giving the snippet of Code.

//===========================================================================
OnPaint(...) //Back ground color with Putpixel(...)

void CExpDlg::OnPaint()
{
if (IsIconic()) // not necessary wizard code
{
CPaintDC dc(this);
SendMessage(WM_ICONERASEBKGND, (WPARAM) dc.GetSafeHdc(), 0);

// Center icon in client rectangle
int cxIcon = GetSystemMetrics(SM_CXICON);
int cyIcon = GetSystemMetrics(SM_CYICON);
CRect rect;
GetClientRect(&rect);
int x = (rect.Width() - cxIcon + 1) / 2;
int y = (rect.Height() - cyIcon + 1) / 2;

// Draw the icon
dc.DrawIcon(x, y, m_hIcon);
}
else //My code starts here !!!!!!!!!!!!!!!!!!!!!
{
CPaintDC dc(this); // here the black color with Pixel --->
CRect Recto;

GetClientRect(&Recto);

CBrush bgBrush(BLACK_BRUSH);
dc.SelectObject(bgBrush);
dc.Rectangle(Recto);

for(int x = 0; x < Recto.Width(); x += 15)
{
for(int y = 0; y < Recto.Height(); y += 15)
{
dc.SetPixel(x, y, RGB(225, 225, 225));
}
}
CDialog::OnPaint();
} //My code Ends here !!!!!!!!!!!!!!!!!!!!!
}
//==========================================================================

//==========================================================================
second thing is generate the CEdit Control in LButton Event.

void CExpDlg::OnLButtonDown(UINT nFlags, CPoint point)
{
ptr = new CEdit;
ptr->Create(WS_VISIBLE|WS_CHILD|WS_BORDER|WS_TABSTOP|ES_AUTOHSCROLL,CRect (point.x,point.y,point.x +100, point.y +20),this,NULL);

}
//===========================================================================

Now my doubt is The Edit box is created but the Dots that i have drawn in Onpaint must be Trasparent in the Dynamically Created EditBox is not visible.

because Transparent means the back side things must also be visible ????

please help me out.

Uday kiran
AnswerRe: Problem in Transparent Edit Control. Pin
payal33530-Aug-06 20:16
payal33530-Aug-06 20:16 
AnswerRe: Problem in Transparent Edit Control. Pin
Hamid_RT30-Aug-06 22:50
Hamid_RT30-Aug-06 22:50 
QuestionRegFlushKey doubt Pin
ashokvishnu30-Aug-06 19:14
ashokvishnu30-Aug-06 19:14 
AnswerRe: RegFlushKey doubt Pin
Waldermort30-Aug-06 20:17
Waldermort30-Aug-06 20:17 
GeneralRe: RegFlushKey doubt Pin
ashokvishnu30-Aug-06 20:42
ashokvishnu30-Aug-06 20:42 
QuestionThead questions Pin
Nicknz30-Aug-06 19:13
Nicknz30-Aug-06 19:13 
AnswerRe: Thead questions Pin
cmk1-Sep-06 0:08
cmk1-Sep-06 0:08 
GeneralRe: Thead questions Pin
Nicknz3-Sep-06 14:09
Nicknz3-Sep-06 14:09 
Questionlocale dll, sugg please Pin
spicy_kid200030-Aug-06 18:21
spicy_kid200030-Aug-06 18:21 
AnswerRe: locale dll, sugg please Pin
Waldermort30-Aug-06 20:14
Waldermort30-Aug-06 20:14 
AnswerRe: locale dll, sugg please Pin
toxcct30-Aug-06 21:48
toxcct30-Aug-06 21:48 
QuestionDIB and normal BITMAP Pin
HakunaMatada30-Aug-06 18:08
HakunaMatada30-Aug-06 18:08 
AnswerRe: DIB and normal BITMAP Pin
Joe Woodbury30-Aug-06 18:27
professionalJoe Woodbury30-Aug-06 18:27 
AnswerRe: DIB and normal BITMAP Pin
Jörgen Sigvardsson30-Aug-06 21:38
Jörgen Sigvardsson30-Aug-06 21:38 
Questioncopy/store to a file Pin
thathvamsi30-Aug-06 17:22
thathvamsi30-Aug-06 17:22 
AnswerRe: copy/store to a file Pin
Rinu_Raj30-Aug-06 17:38
Rinu_Raj30-Aug-06 17:38 
GeneralRe: copy/store to a file Pin
thathvamsi30-Aug-06 18:01
thathvamsi30-Aug-06 18:01 

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.