CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Kibble

Page 1 of 9 1 2 3 4

Search: Search took 0.17 seconds.

  1. Re: Parsing HTTP POST with StreamReader (multipart/form-data with file)

    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,...
  2. Parsing HTTP POST with StreamReader (multipart/form-data with file)

    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...
  3. Replies
    3
    Views
    994

    Re: Reducing flickering when resizing

    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);...
  4. Replies
    3
    Views
    994

    Reducing flickering when resizing

    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....
  5. Replies
    1
    Views
    900

    Re: CToolBarCtrl drawing taller than it should

    I found the solution, use CCS_NORESIZE in the style parameter when you create the toolbar, then manually do MoveWindow in OnSize.
  6. Replies
    1
    Views
    900

    CToolBarCtrl drawing taller than it should

    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,...
  7. Using CToolBarCtrl in CControlBar derived class

    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...
  8. Replies
    1
    Views
    695

    Re: Programmatically scrolling CEdit?

    never mind, found what I was looking for with searching for 'scrolling edit control' rather than 'scrolling CEdit'. DOH!
  9. Replies
    1
    Views
    695

    Programmatically scrolling CEdit?

    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...
  10. Replies
    6
    Views
    2,950

    Re: Accelerators and edit controls

    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...
  11. Replies
    6
    Views
    1,583

    Re: CComboBox without the client edge?

    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.
  12. Replies
    6
    Views
    1,583

    Re: CComboBox without the client edge?

    How do you access the edit control? This structure and related functions are undefined, I must have an old version of the SDK:
    ...
  13. Replies
    6
    Views
    2,950

    Re: Accelerators and edit controls

    That makes much more sense, and that is more flexible, thanks. What I posted does work btw, I just couldn't figure out how.
  14. Replies
    6
    Views
    2,950

    Re: Accelerators and edit controls

    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:


    BOOL...
  15. Replies
    6
    Views
    2,950

    Accelerators and edit controls

    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...
  16. Replies
    6
    Views
    1,583

    CComboBox without the client edge?

    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...
  17. Replies
    32
    Views
    11,298

    Re: MFC Crash on exit

    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...
  18. Replies
    32
    Views
    11,298

    Re: MFC Crash on exit

    You are right, not just destructors but all virtual functions. In this case, CObject has a virtual destructor, which CView is a descendant of.
  19. Replies
    32
    Views
    11,298

    Re: MFC Crash on exit

    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...
  20. Replies
    32
    Views
    11,298

    Re: MFC Crash on exit

    OK! I have discovered the cause of the crash. I was handling WM_SETFOCUS, which looked like this:



    void CRtsEdView::OnSetFocus(CWnd * pOldWnd)
    {
    CView::OnSetFocus(pOldWnd);

    ...
  21. Replies
    32
    Views
    11,298

    Re: MFC Crash on exit

    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...
  22. Replies
    32
    Views
    11,298

    Re: MFC Crash on exit

    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...
  23. Replies
    32
    Views
    11,298

    Re: MFC Crash on exit

    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.
  24. Replies
    32
    Views
    11,298

    I only have one place where I use threads, and...

    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...
  25. Replies
    32
    Views
    11,298

    I know, I was responding to the request to post...

    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...
Results 1 to 25 of 216
Page 1 of 9 1 2 3 4





Click Here to Expand Forum to Full Width

Featured