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

Search:

Type: Posts; User: robertzp

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Replies
    11
    Views
    6,321

    Re: EnableMenuItem problem

    My apologies to all.

    I made a mistake in coding the message handler. The menu items are now being enabled / disabled programatically.

    thanks for your time.
  2. Replies
    11
    Views
    6,321

    Re: EnableMenuItem problem

    The only way to call the handler INDIRECTLY is for the user to click on the menu item.

    But as I have been trying to explain, that is what I am trying to prevent to begin with by disabling it...
  3. Replies
    11
    Views
    6,321

    Re: EnableMenuItem problem

    The whole point is for the program to be able to disable/enable a drop-down menu item directly without user intervention.

    For which reason I was trying unsuccessfully to do this thru the CMenu ...
  4. Replies
    11
    Views
    6,321

    Re: EnableMenuItem problem

    I have been trying to do this



    BEGIN_MESSAGE_MAP(….)
    ON_UPDATE_COMMAND_UI(ID_MENUID, OnUpdateShowResults)

    void CAppDoc::OnUpdateShowResults(CCmdUI* pCmdUI)
    {
    pCmdUI->Enable(FALSE);
  5. Replies
    11
    Views
    6,321

    EnableMenuItem problem

    Hello,
    I have an MDI application and having problems disabling or graying an item in the drop-down menu. I am using visual studio 2015

    The drop-down menu is fourth from the left. Zero-based 3. ...
  6. Replies
    4
    Views
    3,902

    Re: Windows 10 SDK and target platform 8.1

    Thank you VictorN and 2kaud for your advice.
  7. Replies
    4
    Views
    3,902

    Windows 10 SDK and target platform 8.1

    I have developed my application using Visual Studio 2015 with target platform version 8.1 on my Windows 7 desktop

    Will the executable be able to run on Windows 10 systems?

    Do I need to install...
  8. Replies
    4
    Views
    4,498

    Re: Bookmarks in VS 2015

    Arjay,

    It was a little tricky to find the bookmark toolbar customization.

    But I was able to find it in VS2015 by clicking on View - Toolbars and checking Text Editor!

    Go figure! You can...
  9. Replies
    4
    Views
    4,498

    Re: Bookmarks in VS 2015

    Hi Arjay,

    I does not seem to make any difference where the focus is. But normally, my focus is on the current cpp or h file I've bookmarked.

    I have attached screen captures of the vs2008 and...
  10. Replies
    4
    Views
    4,498

    Bookmarks in VS 2015

    In Visual Studio 2008, there is an option to move to the previous or next bookmark in the current document.

    This was replaced in Visual Studio 2015 with move to the previous or next bookmark in...
  11. Replies
    7
    Views
    2,457

    Re: ListBox auto keyboard select

    VictorN,

    Disabling LBS_SORT works!

    The only restriction is that you populate the listbox in sorted order!

    My app now works like Windows Explorer!

    Thanks very for the tip!
  12. Replies
    7
    Views
    2,457

    Re: ListBox auto keyboard select

    VictorN,

    I'll read up on CharToItem.

    FYI, previous keyboard selection is deselected if LBS_EXTENDEDSEL is removed. But this style is so essential for my needs I can't remove it.

    I also...
  13. Replies
    7
    Views
    2,457

    Re: ListBox auto keyboard select

    VictorN,

    See my response interspered in your questions.

    What do you mean by "auto-select"?

    By auto-select, I mean entering a letter key on the keyboard automatically selects the first...
  14. Replies
    7
    Views
    2,457

    ListBox auto keyboard select

    Hello,

    I have a strange problem with auto-select using the keyboard in a multiple selection ListBox.

    Normally, when entering a letter on the keyboard will select the first occurrence of the...
  15. Replies
    1
    Views
    673

    Re: Finding Filename of activated document

    Hello,

    I solved the problem with the following code!

    The code will display the pathname of the active document being displayed on the screen on the status bar!

    Hope this helps others who...
  16. Replies
    1
    Views
    673

    Finding Filename of activated document

    Hello,

    I have an MDI application which shows all the opened documents under the Window Menu.

    The user can switch the view from one document to another by just clicking on the document.

    How...
  17. Replies
    2
    Views
    940

    Re: SetScrollSize and FormView

    AvDav,

    The scrollbars are NOT manually created.

    They are automatically created by Visual Studio if the formview is not scaled to fit.
  18. Replies
    2
    Views
    940

    SetScrollSize and FormView

    Hello,

    I created a formview with nested controls. My problem is setting the correct values for vertical scroll size so that I can scroll thru the complete range of the view. At the moment, my...
  19. Replies
    3
    Views
    804

    Re: WINDOWPLACEMENT and Maximized View

    I also noticed that moving the maximized window is like clicking on the Restore Down button!

    Thank you Victor and 2kaud.
  20. Replies
    3
    Views
    804

    WINDOWPLACEMENT and Maximized View

    Hello,

    Tried to find an explanation for this behavior in the forum but could not find an answer.

    The GetWindowPlacement and SetWindowPlacement code using the registry works fine.

    The...
  21. Replies
    6
    Views
    4,866

    Re: FormView dialog vertical scrollbar

    Ovidiu Cucu

    You are a genius!

    Thank you for the tip. Solves a lot of screen formatting problems for me!
  22. Replies
    6
    Views
    4,866

    Re: FormView dialog vertical scrollbar

    The greyed out horizontal scroll bar on my listbox is because I did not set horizontal extent!

    I think..
  23. Replies
    9
    Views
    1,577

    Re: ListBox entry not deselected

    To Igor, Arjay,

    It took me a week but I found the solution! I can now handle keyboard entries in an Extended Selection ListBox in FormView!

    I found an excellent post from Sam Hobbs.

    The...
  24. Thread: OnKeyDown

    by robertzp
    Replies
    11
    Views
    7,113

    Re: OnKeyDown

    Hi John,

    Are you saying that in FormView, I cannot enter a character from the keyboard to select the first occurrence of the string in a Listbox control in the dialog?

    It seems to work but I...
  25. Replies
    9
    Views
    1,577

    Re: ListBox entry not deselected

    Arjay,

    I have removed the call to OnKeyDown and the same problem occurs.

    I myself thought that this will go to the default behavior of Extended selection but not so.

    FYI, I did the OnKeyDown...
Results 1 to 25 of 35
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured