Hi, I am using "DrawText(HDC hDC,LPCTSTR lpchText,int nCount,LPRECT lpRect,UINT uFormat)" in my project, it returns 0 means function fils. In which case this function will fail and whether there is error code for this function? I have gone through MSDN but they didn't mentioned the reason for failing. Thanks in Advance, Ratheesh
RS Ratheesh
Posts
-
Why DrawText() fails? -
MFC Dragging ImageHi, How to drag image list from one window to another window in MFC MDI application. Thanks & Regards, Ratheesh.
-
Deselecting Tree Node Item in MFCHow to deselect the tree item when clicking outside the tree node (i need to remove focusbox). I used the below code but i failed. void CEditableView::OnLButtonDown(UINT nFlags, CPoint point) { TVHITTESTINFO tvInfo; CPoint pt; HTREEITEM m_pOldSel; GetCursorPos(&pt); m_treeCtrl.ScreenToClient(&pt); tvInfo.pt = pt; UINT uFlags = 1; UINT flags; HTREEITEM htItem = m_treeCtrl.HitTest(pt); if ((htItem != NULL)) { m_pOldSel = m_treeCtrl.GetSelectedItem(); m_treeCtrl.Select(htItem, TVGN_DROPHILITE); m_treeCtrl.GetCheck(htItem); } else { m_treeCtrl.Select(htItem, TVGN_DROPHILITE); } CView::OnLButtonDown(nFlags, point); }
-
CTreeCtrl drag & dropHi Stevy, Have u find answer for this question?. I'm also having the same issue can u please help me.
-
CTreeCtrl Drop Highlight Nodei need to insert item in a selected position eg: if i have tree having one root and five child i need to add new item in the 3rd position but now i can only add it as a first or last item in my child (1st or 6th).
-
CTreeCtrl Drop Highlight NodeHi, I am using MFC MDI uses CTreeCtrl,when i drag and drop an item from one tree to the another tree i have three options TVI_LAST,TVI_FIRST and TVI_SORT but in my case i need to drop item where i placed the mouse please see this image http://www.codeproject.com/KB/tree/treeviewadv/treeviewadv2.png[^] like this, for this what i need to do? Thanks in Advance, Ratheesh.
-
MFC using Visual Studio 2005I'm using Visual C++ 2005 and have added a dialog to my project. When i tried to add class for this dialog by right click and select "Add Class" It pops up a script error: "Line: 815 Error: Object doesn't support this property or method". Ratheesh.
-
Microsoft Visual C++ CrashingHi Vipin, Yes that was the problem, thank you very much for your help. Ratheesh.
-
Microsoft Visual C++ CrashingI am using Visual Studio 6.0 when I tried to use add new files to my existing project it crashes (does the error report thing). I also tried uninstall and reinstall visual studio..., but it does the same thing... I have also gotten an error- MSDEV.EXE - application error... "The instruction at "0x519e1a5b" referenced memory at "0x02004f48". The memory could not be "read"" I think this is the first time, so I have no idea if it ever worked... I am using Win XP PROFESSIONAL SP-2. Thanx in advanced, Ratheesh.
-
Calling Form Buttonclick event from another fileHi, In windows form application I added one button "Draw Shape" and four radio button "Line, Circle, Rectangle, Triangle" I have an abstract class Shape i inherited that Abstract class and created four class Line, Circle, Rectangle, Triangle On clicking the button "Draw shape" i need to draw the selected shape on the page. Eg: In the case of circle i have function Draw() From the main form i am calling Draw() function of the Circle class In the Draw() function i am Drawing the circle override public void Draw() { Graphics mg = CreateGraphics(); mg.DrawArc(new Pen(COLOR, THICKNESS), 100, 100, 45, 40, 0, 360); } I tryed like this.. But getting error How can i resolve this issue? How can i paint the Form class from my class Circle? Please Help me. Regards, Ratheesh.
-
[Message Deleted][Message Deleted]
-
Threading STL QueueHi, i am using MFC application in this application i need to display the received messages from the server (may be a chance for receiving more than one messages at a time) i need to display the received and send messages in the Listbox. i tried it in normal way, but the UI getting freezed after some time. I can able to log that message. So i tried it in some other way, like using queue the received messages are added in the queue and at thet time timer is running and one thread will pop the pushed messages in to the ListBox. Using thread how can i get the pushed value? Thanks, Ratheesh.
-
Threading STL QueueHi, I pushed some string values in to the STL Queue. Now i need to pop the values from that queue using thread in MFC application. Thanks, Ratheesh.
-
STL Queue in MFCHi, Can i use STL queue in MFC application? How can i use it in my application? Thanks, Ratheesh.
-
Windows Workflow FoundationThanks.... Mr. Kevin
-
Windows Workflow FoundationHi, Whether Windows WorkFlow foundation supports in C++, if yes.. how to implement it?. Ratheesh.
-
Getting Last Two BytesHi, I need to take last two bytes from unsigned integer. How can i get it. Ratheesh,
-
Issues in gridSortingi got wrong value after sorting grid ....i click on item command after after sorting i got wrong value....
-
Hex string stream to Binary string:) No i pasted just for a sample output that i need, its not the correct output i copied a part from the output, Thanks for your post.
-
Hex string stream to Binary stringHi, I need C or C++ code to convert the hex string to the binary string please can any one help me. Eg Hex Data: C1 E1 08 0F B6 C0 0B C8 8D 45 F4 50 89 4D F8 FF 15 48 70 40 00 83 45 F0 04 89 45 14 50 8D 45 E4 50 FF 75 0C FF 15 4C 72 40 00 FF 75 14 FF D3 83 45 E8 04 39 7D E8 0F 8C 77 FF FF FF 83 7E 58 FF 74 65 FF 76 34 FF 15 4C 70 40 00 85 C0 89 45 14 74 55 8B 7D 0C 6A 01 57 C7 45 E4 10 00 00 00 C7 45 E8 08 00 00 00 FF 15 50 70 40 00 FF 76 58 57 FF 15 54 70 40 00 FF 75 14 8B 35 58 70 40 00 57 FF D6 89 45 0C 8D 45 E4 68 20 08 00 00 50 6A FF 68 40 3F 42 00 57 FF 15 50 72 40 00 FF 75 To Binary Data: Vÿq@ ‹ø;ûteÿuWÿq@ ‹ð;ót=9]ä‰]ütÿuäèéóÿÿÿÖ…Àt1ÇEü ë(h @ h°@ h PB h ÿuøÿÖƒÄë ÿuj÷èÊ, 9]èuWÿq@ ëjöëjçè™óÿÿSÿq@ é jðèó j߉EÐèé