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

Search:

Type: Posts; User: MasterDucky

Page 1 of 14 1 2 3 4

Search: Search took 0.04 seconds.

  1. Re: error RC2108 : expected numerical dialog constant

    I found it:

    Its text first, ID after.


    PUSHBUTTON "OK", IDOK,10,40,90,20,WS_TABSTOP

    Thanks for the help!
  2. Re: error RC2108 : expected numerical dialog constant

    PUSHBUTTON IDOK,"OK",10,40,90,20,WS_TABSTOP


    It wont compile, I get error on next line:. error RC2116 : expecting number for ID
  3. Re: error RC2108 : expected numerical dialog constant

    Yes, but the ID was defined above.

    And even if I just put a number in the place of IDC_PASSWORD I get the same error.
  4. error RC2108 : expected numerical dialog constant

    Hello,

    I have this error on the EDITEXT line when I try to compile this resource file.
    I checked MSDN, the definition of EDITTEXT seems to be fine.
    If I remove "pass", I get a second error too:...
  5. Replies
    4
    Views
    1,717

    Re: ListBox not working

    That was really helpful.
  6. Replies
    4
    Views
    1,717

    Re: ListBox not working

    Ah, OK, I understand, so there is a difference between declaring and initializing.

    Since it was declared before WM_CREATE I thought it would be global in WindowFunc.

    Thank you very much and...
  7. Replies
    4
    Views
    1,717

    ListBox not working

    Hello,

    Why cant I insert a string to my ListBox?

    When I click on the button nothing happens.



    #include <windows.h>
    #include <iostream>
  8. Re: How to send an LVN_COLUMNCLICK message?

    Of course, how could I miss it that NMHDR hdr; was also a member of NMLISTVIEW structure.

    Ive learned something and its working, thank you very much Victor! :)
  9. [RESOLVED] How to send an LVN_COLUMNCLICK message?

    Hello

    I read it on MSDN that it should be sent through WM_NOTIFY.

    And that the iSubItem number has to be put in a NMLISTVIEW structure.

    But where do I put the NMLISTVIEW structure to tell it...
  10. Replies
    19
    Views
    8,143

    Re: WM_NCPAINT recall

    1. Same with WM_ACTIVATE, no redrawing.

    2. Same with DefWindowsProc() put into WW_ACTIVATE, no redrawing.
  11. Replies
    19
    Views
    8,143

    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.
  12. Replies
    19
    Views
    8,143

    Re: WM_NCPAINT recall

    I dont know, I just copied the code from somewhere.
  13. Replies
    19
    Views
    8,143

    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:
    ...
  14. Replies
    19
    Views
    8,143

    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...
  15. Replies
    19
    Views
    8,143

    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...
  16. Replies
    19
    Views
    8,143

    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.
  17. Replies
    19
    Views
    8,143

    Re: WM_NCPAINT recall

    So where should I call it from or why doesnt Windows send a message when it is invalidated?
  18. Replies
    19
    Views
    8,143

    Re: WM_NCPAINT recall

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

    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...
  20. Replies
    5
    Views
    2,130

    Re: Wm_paint 100% cpu

    Great, thanks!
  21. Replies
    5
    Views
    2,130

    Re: Wm_paint 100% cpu

    I tried to use AllocConsole() but cout or printf wont print anything to the console.
  22. Replies
    5
    Views
    2,130

    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.
    ...
  23. Replies
    5
    Views
    2,130

    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...
  24. Replies
    7
    Views
    17,296

    Re: Drawing over loaded image

    Ah, OK I understand now, thanks!
  25. Replies
    7
    Views
    17,296

    Re: Drawing over loaded image

    I dont do it on purpose. Im using GetDC(myBox); which you can use outside of WM_PAINT.
Results 1 to 25 of 331
Page 1 of 14 1 2 3 4





Click Here to Expand Forum to Full Width

Featured