Edit Menus

This is a discussion on Edit Menus within the Windows Programming forums, part of the Platform Specific Boards category; I'm currently making my own code devlopment tool, with loads of cool features.....i noticed that when u right click in ...

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    3

    Question Edit Menus

    I'm currently making my own code devlopment tool, with loads of cool features.....i noticed that when u right click in the edit area you get a menu appear, allowing to to undo, cut and paste ETC. I was wondering if there's a way you can add these options to the edit area of your menu(normal menu at the top of the window, file, edit & help ETC)........without having to write the fucnctions for it your self. If so, where can i get such resources, or what functions do i need, I've searched high and low......with no luck...please help...

  2. #2
    Registered User
    Join Date
    Sep 2001
    Posts
    156
    Even though this article uses MFC I think it will give you a good start. When in doubt search http://msdn.microsoft.com/library.

    ARTICLE on clipboard:
    http://msdn.microsoft.com/library/de..._clipboard.asp

  3. #3
    Programming is fun, mkay?
    Join Date
    Oct 2001
    Posts
    490

    Lightbulb I knwo how!

    I got it. When you have the menu itself, do this(I have the menu==Edit -> Paste, Cut, Copy, Undo):

    case CM_EDIT_PASTE:
    SendMessage(html, WM_PASTE, (LPARAM)0, (WPARAM)0);
    break;
    case CM_EDIT_COPY:
    SendMessage(html, WM_COPY, (LPARAM)0, (WPARAM)0);
    break;
    case CM_EDIT_CUT:
    SendMessage(html, WM_CUT, (LPARAM)0, (WPARAM)0);
    break;
    case CM_EDIT_UNDO:
    SendMessage(html, EM_UNDO, (LPARAM)0, (WPARAM)0);
    break;
    Website(s): http://www16.brinkster.com/trifaze/

    E-mail: trifaze_mattu@lycos.com

    ---------------------------------
    C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
    DirectX Version: 9.0b
    DX SDK: DirectX 8.1 SDK

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. (Multiline) Edit Control Limit
    By P4R4N01D in forum Windows Programming
    Replies: 9
    Last Post: 05-17-2008, 12:56 PM
  2. line number on a rich edit control
    By rakan in forum Windows Programming
    Replies: 1
    Last Post: 02-18-2008, 07:58 AM
  3. WS_HSCROLL in ES_READONLY edit box error
    By Homunculus in forum Windows Programming
    Replies: 4
    Last Post: 02-13-2006, 08:46 AM
  4. Multiline Edit Box Parser
    By The Brain in forum Windows Programming
    Replies: 6
    Last Post: 11-01-2005, 07:15 PM
  5. Replies: 3
    Last Post: 07-23-2005, 09:00 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21