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

Search:

Type: Posts; User: cfarl

Search: Search took 0.02 seconds.

  1. Replies
    6
    Views
    7,649

    Re: Problem with AllocConsole + GDI

    Subclass would be nice, but subclassing the console window to replace 'wndproc' cannot be done...

    I tried it, but do not worked.


    HWND hwndConsole = GetConsoleWindow();
    ...
  2. Replies
    6
    Views
    7,649

    Re: Problem with AllocConsole + GDI

    Thanks for your reply, 2kaud.

    In fact, I'm using the WinBGIm library. ;)

    It uses a separeted window to draw, and the WM_PAINT to repaint.

    The code I posted above is more simple than using...
  3. Replies
    6
    Views
    7,649

    Re: Problem with AllocConsole + GDI

    Hi, OReubens!

    Thanks for your reply. I agree with you, every place I looked for a information says that I have to use a window with GDI, and not use console.

    I see the WM_PAINT problem,...
  4. Replies
    6
    Views
    7,649

    Problem with AllocConsole + GDI

    Hi!

    I'm having some problems to run GDI in a console window created with AllocConsole.

    In this program I'm painting a circle, pixel by pixel. But if I minimize the console window, then restore...
Results 1 to 4 of 4





Click Here to Expand Forum to Full Width

Featured