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

Search:

Type: Posts; User: MasterDucky

Page 1 of 13 1 2 3 4

Search: Search took 0.63 seconds.

  1. Replies
    19
    Views
    1,665

    Re: WM_NCPAINT recall

    1. Same with WM_ACTIVATE, no redrawing.

    2. Same with DefWindowsProc() put into WW_ACTIVATE, no redrawing.
  2. Replies
    19
    Views
    1,665

    Re: WM_NCPAINT recall

    It's working without it like before, except for the frame redrawing on focus.

    It still draws the frame on window creation.
  3. Replies
    19
    Views
    1,665

    Re: WM_NCPAINT recall

    I dont know, I just copied the code from somewhere.
  4. Replies
    19
    Views
    1,665

    Re: WM_NCPAINT recall

    1. No DefWindowProc() call in WM_NCPAINT.

    2. Lot of messages after WM_NCPAINT: WM_ERASEBACKGROUND, WM_ACTIVATE, WM_ACTIVATEAPP, WM_CTLCOLORSTATIC etc..



    case WM_COMMAND:
    ...
  5. Replies
    19
    Views
    1,665

    Re: WM_NCPAINT recall

    Very good idea!

    I looked up in spy++, a lot of messages sent just by touching the window with the mouse.

    I chose WM_SETFOCUS and put RedrawWindow() there. Then I compiled it and interestingly...
  6. Replies
    19
    Views
    1,665

    Re: WM_NCPAINT recall

    Thank you, it's working with your definition of

    RedrawWindow(hwnd, NULL, NULL, RDW_FRAME | RDW_INVALIDATE);
    but it wont stop sending WM_NCPAINT messages now and it's flickering.

    Surely...
  7. Replies
    19
    Views
    1,665

    Re: WM_NCPAINT recall

    Thank you.

    I tried spy++ but I cant see the WM_NCPAINT message triggered.

    I also tried the solutions proposed in your link, without success.
  8. Replies
    19
    Views
    1,665

    Re: WM_NCPAINT recall

    So where should I call it from or why doesnt Windows send a message when it is invalidated?
  9. Replies
    19
    Views
    1,665

    Re: WM_NCPAINT recall

    Yes, I put it into WM_PAINT because the main area gets redrawn but it didnt call WM_NCPAINT.
  10. Replies
    19
    Views
    1,665

    WM_NCPAINT recall

    Hi

    I drew the window frame in WM_NCPAINT message but when the window loses focus
    the frame wont get drawn again, WM_NCPAINT not getting called again.

    How to call WM_NCPAINT again?

    Should I...
  11. Replies
    5
    Views
    575

    Re: Wm_paint 100% cpu

    Great, thanks!
  12. Replies
    5
    Views
    575

    Re: Wm_paint 100% cpu

    I tried to use AllocConsole() but cout or printf wont print anything to the console.
  13. Replies
    5
    Views
    575

    Re: Wm_paint 100% cpu

    Thank you very much for your response 2kaud, it solved the problem! :)

    Actually I was handeling the WM_PAINT message but I removed it for simplicity's sake as it was causing the same symptom.
    ...
  14. Replies
    5
    Views
    575

    Wm_paint 100% cpu

    Hi

    I'm getting 100% CPU usage because of WM_PAINT is getting called all the time.

    I simplified the code to a maximum to eliminate the culprit but still getting 100% cpu usage.


    #include...
  15. Replies
    7
    Views
    4,922

    Re: Drawing over loaded image

    Ah, OK I understand now, thanks!
  16. Replies
    7
    Views
    4,922

    Re: Drawing over loaded image

    I dont do it on purpose. Im using GetDC(myBox); which you can use outside of WM_PAINT.
  17. Replies
    7
    Views
    4,922

    Drawing over loaded image

    I loaded a bmp picture and Id like to draw over it. The image is loaded but the text wont get drawn on it. I posted the code, what am I doing wrong?


    #include <windows.h>
    #include <iostream>...
  18. Replies
    4
    Views
    2,067

    Re: Can read REG_SZ but not REG_DWORD value

    Great, thanks!
  19. Replies
    4
    Views
    2,067

    Re: Can read REG_SZ but not REG_DWORD value

    Thank you Kaud!

    I managed to read other REG_DWORD values by modifying the code with the help of your link but this specific key returns me 0.

    Edit: but on another machine its working so it must...
  20. Replies
    4
    Views
    2,067

    Can read REG_SZ but not REG_DWORD value

    Hi,

    I can read REG_SZ values but not REG_DWORD values from the registry.

    Do I need another type than char* as 5th parameter of the RegQueryValueEx() function if I want to read REG_DWORD value...
  21. Replies
    4
    Views
    1,423

    Re: Debugging problem

    OK, I found out how to debug threads. :)
  22. Replies
    4
    Views
    1,423

    Re: Debugging problem

    OK, the crash is occurring in the "void Get_Column_Info()" function that I call by the thread "std::thread Column_Info_Thread(Get_Column_Info);".

    But when I try to step into this thread by F11 to...
  23. Replies
    4
    Views
    1,423

    Re: Debugging problem

    Thank you Victor, the Call stack window shows:

    > user32.dll!_InternalCallWinProc@20() Unknown


    Call before: VisualStudioDebug.exe!MainWndProc(HWND__ * hwnd, unsigned int uMsg, unsigned...
  24. Replies
    4
    Views
    1,423

    Debugging problem

    Hi

    Im trying to debug a Win32 visual program because I have a "invalid pointer crash" but I cannot find it where because stepping over with F10 at a certain point debugging just stops and I cant...
  25. Replies
    19
    Views
    2,614

    Re: Variables declared in Windows loop

    So if I understand it well, the compiler knows that they are there and only going to allocate them once.
Results 1 to 25 of 322
Page 1 of 13 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)