Click here to Skip to main content
15,912,273 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Byte alignment Pin
Stan the man19-Sep-08 1:46
Stan the man19-Sep-08 1:46 
AnswerRe: Byte alignment Pin
James R. Twine19-Sep-08 1:27
James R. Twine19-Sep-08 1:27 
QuestionStatic Label Visible Problem Pin
Dhiraj kumar Saini18-Sep-08 23:50
Dhiraj kumar Saini18-Sep-08 23:50 
AnswerRe: Static Label Visible Problem Pin
Chandrasekharan P18-Sep-08 23:55
Chandrasekharan P18-Sep-08 23:55 
AnswerRe: Static Label Visible Problem Pin
Cedric Moonen19-Sep-08 0:04
Cedric Moonen19-Sep-08 0:04 
AnswerRe: Static Label Visible Problem Pin
Sandeep Saini SRE19-Sep-08 0:22
Sandeep Saini SRE19-Sep-08 0:22 
AnswerRe: Static Label Visible Problem Pin
ThatsAlok19-Sep-08 1:02
ThatsAlok19-Sep-08 1:02 
QuestionI want to draw sth on the flash contorl Pin
61934514218-Sep-08 23:33
61934514218-Sep-08 23:33 
I have already download the sourcecode of Transparent Flash Control
http://www.codeproject.com/KB/COM/flashcontrol.aspx

now I want to draw something on the flash control, I do it like this
OLECONTAINER(void)::Draw(HDC hdcDraw, const RECT *rcDraw, BOOL bErase)
{
HWND hwnd = GetHWND();
HRESULT hr;
RECT r;


IOleObject *lpO = m_lpO;
IViewObject *lpV = m_lpViewObjectEx ? (IViewObject
*)m_lpViewObjectEx : m_lpViewObject;


// if (!m_bTransparent)
{
RECT rTotal;
::GetClientRect(hwnd, &rTotal);
if (lpV)
{
if (!hdcDraw)
{
hdcDraw = ::GetDC(hwnd);
hr = OleDraw(lpV, DVASPECT_CONTENT, hdcDraw, &rTotal);
::ReleaseDC(hwnd, hdcDraw);
}
else
{
hr = OleDraw(lpV, DVASPECT_CONTENT, hdcDraw, &rTotal);
}
}


TextOut(hdcDraw, 0, 0, "test", 4); // <======= do it like this
return;
}
but nothing happen......how can I do it ?
QuestionChart control for MFC unmanaged C++.. Pin
Ahmed Charfeddine18-Sep-08 22:59
Ahmed Charfeddine18-Sep-08 22:59 
AnswerRe: Chart control for MFC unmanaged C++.. Pin
Cedric Moonen18-Sep-08 23:03
Cedric Moonen18-Sep-08 23:03 
GeneralRe: Chart control for MFC unmanaged C++.. Pin
Ahmed Charfeddine18-Sep-08 23:05
Ahmed Charfeddine18-Sep-08 23:05 
AnswerRe: Chart control for MFC unmanaged C++.. Pin
Hamid_RT18-Sep-08 23:48
Hamid_RT18-Sep-08 23:48 
GeneralRe: Chart control for MFC unmanaged C++.. Pin
Ahmed Charfeddine18-Sep-08 23:54
Ahmed Charfeddine18-Sep-08 23:54 
QuestionCan I set timeout in IWebBrowser2 Navigate? Pin
kobelakers7618-Sep-08 22:08
kobelakers7618-Sep-08 22:08 
AnswerRe: Can I set timeout in IWebBrowser2 Navigate? Pin
kobelakers7618-Sep-08 22:39
kobelakers7618-Sep-08 22:39 
GeneralRe: Can I set timeout in IWebBrowser2 Navigate? Pin
Sandeep Saini SRE19-Sep-08 1:23
Sandeep Saini SRE19-Sep-08 1:23 
GeneralRe: Can I set timeout in IWebBrowser2 Navigate? Pin
kobelakers7619-Sep-08 8:02
kobelakers7619-Sep-08 8:02 
QuestionIPC on Vista (service and application) Pin
navaneethm18-Sep-08 21:44
navaneethm18-Sep-08 21:44 
QuestionRe: IPC on Vista (service and application) Pin
Mark Salsbery19-Sep-08 6:21
Mark Salsbery19-Sep-08 6:21 
AnswerRe: IPC on Vista (service and application) [modified] Pin
navaneethm21-Sep-08 19:26
navaneethm21-Sep-08 19:26 
GeneralRe: IPC on Vista (service and application) Pin
Mark Salsbery22-Sep-08 4:36
Mark Salsbery22-Sep-08 4:36 
GeneralRe: IPC on Vista (service and application) Pin
navaneethm22-Sep-08 20:51
navaneethm22-Sep-08 20:51 
GeneralRe: IPC on Vista (service and application) Pin
Mark Salsbery23-Sep-08 5:30
Mark Salsbery23-Sep-08 5:30 
GeneralRe: IPC on Vista (service and application) Pin
navaneethm23-Sep-08 20:53
navaneethm23-Sep-08 20:53 
GeneralRe: IPC on Vista (service and application) Pin
Mark Salsbery24-Sep-08 5:18
Mark Salsbery24-Sep-08 5:18 

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.