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

Search:

Type: Posts; User: TubularX

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    554

    Re: Size from CImageList

    Excellent! Thank you!!
  2. Replies
    8
    Views
    554

    Re: Size from CImageList

    Well, thanks. I was hoping for some less ugly solution, but I guess this will have to do.
  3. Replies
    8
    Views
    554

    Re: Size from CImageList

    GetImageInfo requires the index of an image. In case the list is empty, this will not work. If all images have already been removed when I am given the pointer, I still need to be able to get the...
  4. Replies
    8
    Views
    554

    Size from CImageList

    The documentation states that "An image list is a collection of same-sized images" (http://msdn.microsoft.com/en-us/library/9xc4z2c7.aspx).

    But how do I retrieve that size? I have a pointer to an...
  5. Replies
    6
    Views
    834

    Re: Validate unsigned operations?

    Yes, it's legal, but I can't recall that I have ever done it on purpose. Maybe that behaviour is defined just because it's better than the alternative of undefined behaviour?

    Writing unit tests is...
  6. Replies
    6
    Views
    834

    Validate unsigned operations?

    Hello,

    I don't know if this is a common problem, but I've sometimes encountered unexpected runtime issues caused by unsigned values being decremented below zero.

    Example 1: "unsigned_value +=...
  7. Replies
    9
    Views
    577

    Re: Passing NULL to a pointer parameter

    It's recommended to pass nullptr instead of NULL macro.
  8. Replies
    2
    Views
    1,405

    Re: Battleship Game

    First of all, I guess this question is not really related to Visual C++. It's about design decisions, maybe you should try another forum?

    Now, to try to answer your question... In an object...
  9. Replies
    5
    Views
    1,312

    Re: ChoosePixelFormat NULL handle?

    OK, that makes sense. Thank you! I will investigate and debug on some other hardware as well.
  10. Replies
    5
    Views
    1,312

    Re: ChoosePixelFormat NULL handle?

    It's not NULL. The device context is retrieved from a window and should be valid. I can use the handle later with DrawText and see the results. ChoosePixelFormat returns a non-zero value, so...
  11. Replies
    5
    Views
    1,312

    ChoosePixelFormat NULL handle?

    PIXELFORMATDESCRIPTOR pfd = {
    sizeof (PIXELFORMATDESCRIPTOR), // Size of this structure
    1, // Version number
    PFD_DRAW_TO_WINDOW | ...
  12. Replies
    4
    Views
    1,621

    Re: Showing dialog in DLL

    Thanks Igor!!

    Sorry about that. I was so certain that I already tried that. I must have made a mistake then, since it obviously works :-)
  13. Replies
    4
    Views
    1,621

    Showing dialog in DLL

    I create a dynamic library, using "MFC in a Shared DLL".

    I export a test method:

    h-file:


    class CMyClass
    {
    public:
  14. Replies
    1
    Views
    669

    Layered dialog, stay on top?

    Did anyone create a modeless dialog as a layered window and successfully made it stay "on top" (always visible) ? I can't make it work in Windows XP.

    I created a dialog class from CDialogEx, set...
  15. Replies
    0
    Views
    646

    Disable Ribbon Category?

    Hello!

    How can I disable a category of CMFCRibbonBar? In other words, I want the text in the category tab to be grayed out and ignore any clicks on it to prevent its elements from being shown. In...
  16. Replies
    0
    Views
    430

    How to omit MFC menu?

    How can I skip creation of the main menu when MainFrame is derived from CMDIFrameWndEx?

    I tried following the same steps as with CMDIFrameWnd (http://support.microsoft.com/kb/131368). However,...
  17. Replies
    4
    Views
    919

    Re: CMFCRibbonQuickAccessCustomizeButton

    @Victor,

    Sorry, let me clarify...

    GetID is a method of CMFCRibbonBaseElement (and CMFCRibbonQuickAccessCustomizeButton is derived from this class). It returns the command ID according to MSDN...
  18. Replies
    4
    Views
    919

    Re: CMFCRibbonQuickAccessCustomizeButton

    Thanks for your reply.

    I suppose you mean ON_UPDATE_COMMAND_UI, but for that I need the ID of the control, right? Unfortunately, GetID() returns 0 if I call the button when it's clicked, so I...
  19. Replies
    4
    Views
    919

    CMFCRibbonQuickAccessCustomizeButton

    How to get a pointer to the customize button that belongs to the CMFCRibbonBar in Visual Studio 2010?

    Or, what I really need is to change the tooltip message for the...
  20. Replies
    0
    Views
    1,052

    Problem with relative paths in VS 2010

    We have migrated to Visual Studio 2010, but have problems with relative paths (that is when selecting a file in Solution Explorer and showing File Properties).

    The problem is when using...
  21. Replies
    10
    Views
    3,603

    Re: CDockablePane questions

    I now also tried overriding CDockablePane::IsResizable and return false. Well, it didn't help.

    Please, anyone? Is it really impossible to prevent resizing?? :-/
  22. Replies
    10
    Views
    3,603

    Re: CDockablePane questions

    I now created a new MFC project with VS2010 and added just my CDockablePane class. See attached file. You can now see trace for yourself. Please advise.
  23. Replies
    10
    Views
    3,603

    Re: CDockablePane questions

    Well, same result...

    CString strRes;
    strRes.Format(_T("%d\n"), res);
    TRACE(strRes);

    It only outputs many rows with "1" when mouse is inside the pane. When hovering mouse over the border or...
  24. Replies
    10
    Views
    3,603

    Re: CDockablePane questions

    OK, I see how it's supposed to work. I also read here: http://msdn.microsoft.com/en-us/magazine/cc301402.aspx, where it says "If the mouse is in the left or right border, the default proc returns...
  25. Replies
    10
    Views
    3,603

    Re: CDockablePane questions

    OK, here is the relevant code trying to prevent changing the width:

    From class header file:


    public:
    afx_msg void OnWindowPosChanging(LPWINDOWPOS lpWndPos);


    From source file:
Results 1 to 25 of 83
Page 1 of 4 1 2 3 4


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center