Drawing on DC I would like to know how i can draw lines,circles or other object on device context like a CAD app,making objects drawed and moved continously on screen according to WM_MOUSEMOVE. I tryed with InvalidateRect but when i stop moving mouse the(for example) circle is deleted and it's not visible, and i want it's v... 20 Nov 2006 17:40
Warning: m_pMainWnd is NULL in CWinApp::Run - quitting application I have an MFC application hosting a COM component. It has not got a user interface and so has no window classes. I get the following error message when attempting to run it: Warning: m_pMainWnd is NULL in CWinApp::Run - quitting application. Is there a way round this or must i have a dummy window? What i... 21 Nov 2006 10:05
CTooltipCtrl on disabled control question Hi, I am using CTooltipCtrl class to set tooltips to my controls in a dialog. The problem is that if a control is disabled, then the tooltip is not shown. note: I tried to use TTS_ALWAYSTIP when I create the CTooltipCtrl, but it didn't help. Yoav. ... 22 Nov 2006 11:12
CDHTLMDialog troubles Hi I'm justing to use the CDHTMLDialog with the following code IHTMLElement* pLinkElement = NULL; if (GetElement(_T("ctl00_ContentPlaceHolder1_tb1"), &pLinkElement) == S_OK && pLinkElement != NULL) { BSTR current; pLinkElement->get_innerText(¤t); pLinkElement->get_id(¤t); CStrin... 5 Nov 2006 06:28
Setting background in CListView I am developing SDI application in vc using vs2k5. my *view* class (CTestView) inherited from CListView. I want to place background Image in list view. I wrote following code in "CTestView::OnInitialUpdate()" function, list view control name is l_Ctrl(List View Control), and working fine with Tile Style in both op... 8 Nov 2006 05:29
VC6 online help (MSDN) How do I connect MSDN as context-sensitive online help for VC6 (ie so F1 works properly)? Google shows lots of questions about this, but not an answer that solves it for me, so apologies for thrashing this yet again. I've just set up VS6 (C++ and VB) on a new machine running XP SP2 (32bit). During the inst... 1 Nov 2006 17:18
AFX_IDS_UNTITLED Hi, MY MFC app is complaining in debug mode (at startup): in docsingl.cpp; VERIFY(strDocName.LoadString(AFX_IDS_UNTITLED)); If I ignore this, everything works fine. If I add the string in my string table, it does not even complain. However, if I add it myself, I cannot compile the Release. Because then ... 1 Nov 2006 18:52
Regsvr32 failed for debug version of Dll, why? Hi There, I am working on a MFC application with sone Dlls. Development environment: Visual Studio 6.0 / Sp6 on Windows XP/Sp2. I login the system as an administrator. When I was registering debug version of my dll using regsvr32, it failed. Result of debugging points to: BOOL COleLinkingDoc::RegisterIfServ... 29 Oct 2006 08:47
CDateTimeCtrl and ON_WM_CTLCOLOR_REFLECT -- Bob "BobH" wrote: I would like to change the graytext of a disabled date control to black text. In order to do this I need to override CtlColor. However, I do not seem to be getting any paint notifications. The debugger shows that WM_PAINT is reaching mt derived control's WindowProc but not... 28 Oct 2006 21:05
CCtrlDateTime and ON_WM_CTLCOLOR_REFLECT I would like to change the graytext of a disabled date control to black text. In order to do this I need to override CtlColor. However, I do not seem to be getting any paint notifications. The debugger shows that WM_PAINT is reaching mt derived control's WindowProc but not WM_CTLCOLOR. The same setup works fin... 28 Oct 2006 21:05 |