Type: Posts; User: Kibble
Search took 0.02 seconds.
July 23rd, 2010, 06:06 PM
That does not seem very useful because BinaryReader.ReadString needs a special format of string to know how many characters to read. This data is coming from a web client that I have no control over,...
July 23rd, 2010, 05:25 PM
I am attempting to parse an HTTP POST (from a NetworkStream) that is multipart/form-data with a file input field.
The problem is that I need to parse the stream with a StreamReader in order to...
September 19th, 2004, 03:37 PM
here is an example of a WM_SIZE handler:
void CEdConsole::OnSize(UINT nType, int cx, int cy)
m_Text.MoveWindow(0, 0, cx, cy - 21);
m_Input.MoveWindow(0, cy - 18, cx - 52, 18);...
September 19th, 2004, 06:41 AM
I am looking for ways to reduce flickering when resizing. I've set WS_CLIPCHILDREN on parent windows, which reduced a lot of flicker. I couldn't find anywhere were WS_CLIPSIBLINGS made a difference....
September 7th, 2004, 10:31 PM
I found the solution, use CCS_NORESIZE in the style parameter when you create the toolbar, then manually do MoveWindow in OnSize.
September 7th, 2004, 03:07 AM
My toolbar buttons are all 16x15, however I can't size any controls within 28 pixels of the toolbar or the toolbar and control will have drawing errors with eachother. when located 28 pixels below,...
September 6th, 2004, 03:56 PM
I am trying to use a CToolBarCtrl in this class: http://www.codeproject.com/docking/sizecbar.asp
without much luck. It simply doesn't display at all, its like its not even there. If I make a child...
August 30th, 2004, 10:41 PM
never mind, found what I was looking for with searching for 'scrolling edit control' rather than 'scrolling CEdit'. DOH!
August 30th, 2004, 09:32 PM
I am trying to make a read only edit control that behaves much like the compiler output in MSVC6 and I'm sure plenty of other programs. It should scroll down to include new text, unless the scroll...
August 27th, 2004, 02:59 AM
Believe me I have no friggin idea how it works, but I've been using it and it has consistently worked fine. I'm pretty sure its just because TranslateAccelerator returns false right away, and then...
August 26th, 2004, 09:18 PM
I updated my platform SDK, it works now, as well as a ton of other **** that I couldn't do before. Thanks for the help.
August 26th, 2004, 08:58 PM
How do you access the edit control? This structure and related functions are undefined, I must have an old version of the SDK:
August 26th, 2004, 02:47 PM
That makes much more sense, and that is more flexible, thanks. What I posted does work btw, I just couldn't figure out how.
August 26th, 2004, 02:41 AM
That is basically what I came up with, but I couldn't figure out what to pass to TranslateAccelerator when I tried it. Since you left that part out (;)) I took a potshot with this:
August 26th, 2004, 01:17 AM
I am having trouble with accelerators and typing in edit controls. For example, if the user is typing text in an edit control in the app, and presses the delete key, instead of deleting a character...
August 25th, 2004, 03:05 AM
I am working on something similar to a grid control, and I have nearly all the cell types that I want, except for one. I can't get the CComboBox to fit in 16 pixels vertically, mainly because I can't...
August 25th, 2004, 02:34 AM
I tried replacing some things with the MDIActivate function, I still had some trouble. My manually maintained pointers do what I need, and don't cause a crash, so I'm going to stick with them. Thanks...
August 25th, 2004, 12:34 AM
You are right, not just destructors but all virtual functions. In this case, CObject has a virtual destructor, which CView is a descendant of.
August 25th, 2004, 12:16 AM
Alright, sorry for so many posts. I seem to have solved it by simply maintaining my own active view and document pointers, and not ever calling the SetActiveView MFC member function. I assume MFC was...
August 24th, 2004, 11:59 PM
OK! I have discovered the cause of the crash. I was handling WM_SETFOCUS, which looked like this:
void CRtsEdView::OnSetFocus(CWnd * pOldWnd)
August 24th, 2004, 11:36 PM
Unfortuantely I'm using Visual Studio 6, I'm downloading the part of the SDK with windbg now.
It is, and has to be, because CObject's destructor has got to be virtual.
Nothing is showing up in...
August 24th, 2004, 11:06 PM
Thanks for the tip nigel, but I'm pretty sure all of my classes that need it have virtual destructors.
However, I seem to have made a breakthrough, at least it seems to prevent the crash some of...
August 24th, 2004, 09:17 PM
It is faster to do what I'm doing now than try that, in the past when I tried to find problems with MFC code like this, I've stepped right over it without realizing its something MFC doesn't like.
August 23rd, 2004, 08:42 PM
I only have one place where I use threads, and its not being used. Thanks for trying :) I think I will just start tearing it down until I find the cause, it is unreasonable of me to expect an answer...
August 23rd, 2004, 08:31 PM
I know, I was responding to the request to post the code, which is not practical.
I already said above that I assume its my problem, what I'm asking is that the symptom appears to be pretty unique...
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.