Click here to Skip to main content
15,915,172 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Deleting a CStatic object Pin
ThatsAlok31-Jul-06 4:28
ThatsAlok31-Jul-06 4:28 
AnswerRe: Deleting a CStatic object Pin
ThatsAlok31-Jul-06 4:27
ThatsAlok31-Jul-06 4:27 
QuestionCIPAddressCtrl class................... Pin
cool_frozen31-Jul-06 0:53
cool_frozen31-Jul-06 0:53 
QuestionRe: CIPAddressCtrl class................... Pin
David Crow31-Jul-06 4:45
David Crow31-Jul-06 4:45 
AnswerRe: CIPAddressCtrl class................... Pin
cool_frozen31-Jul-06 20:02
cool_frozen31-Jul-06 20:02 
QuestionMulti Select control refresh Pin
Andy H31-Jul-06 0:52
Andy H31-Jul-06 0:52 
AnswerRe: Multi Select control refresh Pin
Naveen31-Jul-06 2:13
Naveen31-Jul-06 2:13 
QuestionCPaintDC out of Childview Pin
sdhtyjnniutnbjnhbghb31-Jul-06 0:08
sdhtyjnniutnbjnhbghb31-Jul-06 0:08 
Hello
I create a childview and also create process. I want to paint something in the childview. But I try to change the code in childview but some errors happen.

CString SelfTimer;
SelfTimer.Format(_T("%d"),_T("123"));
invalidateRect.SetRect(50,200,450,232);
HBRUSH hBrush = CreateSolidBrush(RGB(255,0,255));
::SetBkMode(g_hTimeMemDC, TRANSPARENT);
::FillRect(g_hTimeMemDC, &invalidateRect, hBrush);

::SetTextColor(g_hTimeMemDC,RGB(0,0,0));
::DrawText(g_hTimeMemDC, SelfTimer, -1, &invalidateRect, DT_LEFT | DT_TOP);
InvalidateRect(HWND(param), &invalidateRect, false);
DeleteObject(hBrush);

CPaintDC dc(HWND(param));
if(g_hTimeMemDC)

TransparentImage(dc.m_hDC,invalidateRect.left,invalidateRect.top,invalidateRect.Width(),invalidateRect.Height(), g_hTimeMemDC,invalidateRect.left,invalidateRect.top,invalidateRect.Width(),invalidateRect.Height(), RGB(255, 0, 255));

the build error is left of '.m_hDC' must have class/struct/union in TransparentImage function

who could I fix the issue or the way I program is wrong??

Any suggestion is useful!! Thanks!!

AnswerRe: CPaintDC out of Childview Pin
Hamid_RT31-Jul-06 0:44
Hamid_RT31-Jul-06 0:44 
GeneralRe: CPaintDC out of Childview Pin
sdhtyjnniutnbjnhbghb31-Jul-06 15:39
sdhtyjnniutnbjnhbghb31-Jul-06 15:39 
GeneralRe: CPaintDC out of Childview Pin
Hamid_RT31-Jul-06 18:51
Hamid_RT31-Jul-06 18:51 
Questionmodeless dialog error Pin
NoName II30-Jul-06 23:52
NoName II30-Jul-06 23:52 
AnswerRe: modeless dialog error Pin
Naveen31-Jul-06 0:04
Naveen31-Jul-06 0:04 
AnswerRe: modeless dialog error Pin
Sarath C31-Jul-06 0:10
Sarath C31-Jul-06 0:10 
GeneralRe: modeless dialog error [modified] Pin
Naveen31-Jul-06 0:34
Naveen31-Jul-06 0:34 
GeneralRe: modeless dialog error [modified] Pin
Sarath C31-Jul-06 0:48
Sarath C31-Jul-06 0:48 
GeneralRe: modeless dialog error Pin
Naveen31-Jul-06 0:58
Naveen31-Jul-06 0:58 
GeneralRe: modeless dialog error [modified] Pin
Sarath C31-Jul-06 1:00
Sarath C31-Jul-06 1:00 
GeneralRe: modeless dialog error Pin
Naveen31-Jul-06 1:08
Naveen31-Jul-06 1:08 
GeneralRe: modeless dialog error Pin
David Crow31-Jul-06 4:56
David Crow31-Jul-06 4:56 
AnswerRe: modeless dialog error Pin
Hamid_RT31-Jul-06 0:56
Hamid_RT31-Jul-06 0:56 
QuestionRe: How to get Time Zone abbreviation from client? Pin
David Crow31-Jul-06 4:58
David Crow31-Jul-06 4:58 
AnswerRe: How to get Time Zone abbreviation from client? Pin
Sachin Gedam31-Jul-06 20:49
Sachin Gedam31-Jul-06 20:49 
QuestionRe: How to get Time Zone abbreviation from client? Pin
David Crow1-Aug-06 3:10
David Crow1-Aug-06 3:10 
QuestionImage Quality Loss on Extrating Image from CImageList Pin
MacGadger30-Jul-06 23:44
MacGadger30-Jul-06 23:44 

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.