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

Search:

Type: Posts; User: MasterDucky

Page 1 of 12 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    19
    Views
    824

    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.
  2. Replies
    7
    Views
    480

    Re: InvalidateRect

    Ah, OK I get it now!

    I had to calculate the 25 from the 100, so its 100+25.

    Thank you Victor, I thought I would have never understood it. :)
  3. Replies
    19
    Views
    824

    Re: Variables declared in Windows loop

    @OReubens
    Thank you, very informative!

    @Arjay
    That makes sense, thanks!
  4. Replies
    7
    Views
    480

    Re: InvalidateRect

    My 'top left' of the rectangle that I'm invalidating is actually the bottom left?

    Then how come it writes to the right place when you move a window over it?
  5. Replies
    19
    Views
    824

    Re: Variables declared in Windows loop

    So its best to declare them in the "case" that uses them.

    I think globals are bad in a large program where you use them in different places. In a small program it doesnt really matter.
  6. Replies
    7
    Views
    480

    Re: InvalidateRect

    I think the coords are OK because if I do this it will write to the same place.



    TextOut(hdc, 20, 100, buf, strlen(buf));
    TextOut(hdc, rText.left, rText.top, "ccccccccccc", 10);
  7. Replies
    19
    Views
    824

    Re: Variables declared in Windows loop

    Thanks a lot for the explanation!

    So it's OK if I stop declaring them there and just declare them as globals instead?
  8. Replies
    19
    Views
    824

    Variables declared in Windows loop

    I see variables declared even in professional code outside of the switch() message loop inside WndProc.

    It means that they are declared at least 100 times a second again and again.

    How is it a...
  9. Replies
    7
    Views
    480

    InvalidateRect

    Im trying to refresh one part of the window with InvalidateRect but it wont get refreshed right away. It will be if you move another window over it.

    What am I doing wrong?



    #include...
  10. Replies
    3
    Views
    819

    Re: Directshow - Previewing Video

    Thanks Addy!
  11. Replies
    2
    Views
    368

    Re: Ignoring unknown option /LIBPATH:dir

    Thanks, I got it. :)
  12. Replies
    2
    Views
    368

    Ignoring unknown option /LIBPATH:dir

    On MSDN it says /LIBPATH:dir is the switch to add additional lib path.

    In the cl.exe --help there is no such a switch.

    And when I use /LIBPATH:C: I get D9002 'Ignoring unknown option' error.
    ...
  13. Replies
    3
    Views
    819

    Directshow - Previewing Video

    I'm following this MSDN tutorial to preview video from my webcam.

    https://msdn.microsoft.com/en-us/library/windows/desktop/dd377468(v=vs.85).aspx

    I wrote the code but it's crashing on
    ...
  14. Replies
    11
    Views
    707

    Re: Clicking treeview item

    Yes, TreeView_HitTest is the way to go. There is even a pointer to the item clicked: lpht.hItem.

    Thank you very much for both of you! :)

    Happy New Year!
  15. Replies
    11
    Views
    707

    Re: Clicking treeview item

    I would like to use this solution as it seems to be the simplest but the problem is that you wont get TVN_SELCHANGED message if you click the same item again since the item is still selected.
  16. Replies
    11
    Views
    707

    Re: Clicking treeview item

    Yes, I thought about that solution but the problem is that NM_CLICK detects any click anywhere in the treeview not only on the items.

    How to know if the user clicked on the same item and not just...
  17. Replies
    11
    Views
    707

    Re: Clicking treeview item

    NM_CLICK = left click
  18. Replies
    11
    Views
    707

    Re: Clicking treeview item

    That's right, that makes sense. Thank you Kaud!

    So is there a message for an item clicked whether it changed or not?
    ...
  19. Replies
    11
    Views
    707

    Clicking treeview item

    Hi,

    I want to get a notification when I click again the same treeview item and also want to get the item's name again.

    I get the notification but my GetTextItemTree() function not returning...
  20. Replies
    1
    Views
    381

    ISampleGrabber

    I have this code that uses the ISampleGrabber interface.

    When I look up the methods of ISampleGrabber I cannot find the CoCreateInstance method?

    Why is that?
    ...
  21. Replies
    2
    Views
    402

    Re: Convert DDX_Control(mfc) to WinAPI

    OK, so I can drop it, thanks Igor!
  22. Replies
    2
    Views
    402

    Convert DDX_Control(mfc) to WinAPI

    I am converting an MFC program to a Win32 program.

    I got stuck at the DDX_Control function.

    How to convert the DDX_Control function to a WinAPI function?


    void...
  23. Replies
    4
    Views
    389

    Re: Circular dependencies

    Thanks.

    Merry Christmas!
  24. Replies
    4
    Views
    389

    Re: Circular dependencies

    Great explanation, thanks!

    I have crossbar.h and these declarations in it. Should it be in caps?




    #ifndef __Crossbar_h__
    #define __Crossbar_h__
  25. Replies
    4
    Views
    389

    Circular dependencies

    I'm trying to compile the Directshow example amcap without the MSVC IDE and I think I have a circular dependency problem.

    I looked it up on Wikipedia but I dont know what 'A_H' means and what is...
Results 1 to 25 of 298
Page 1 of 12 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




HTML5 Development Center