Thread: Edit Menus

  1. #1
    Registered User
    Join Date
    Nov 2001

    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
    Even though this article uses MFC I think it will give you a good start. When in doubt search

    ARTICLE on clipboard:

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

    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);
    case CM_EDIT_COPY:
    SendMessage(html, WM_COPY, (LPARAM)0, (WPARAM)0);
    case CM_EDIT_CUT:
    SendMessage(html, WM_CUT, (LPARAM)0, (WPARAM)0);
    case CM_EDIT_UNDO:
    SendMessage(html, EM_UNDO, (LPARAM)0, (WPARAM)0);


    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, 11:56 AM
  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, 08:00 AM