add some menus to "START" button?

Тема в разделе "WASM.ENGLISH", создана пользователем dcskm4200, 12 июн 2007.

  1. dcskm4200

    dcskm4200 New Member

    Публикаций:
    0
    Регистрация:
    12 окт 2004
    Сообщения:
    173
    Адрес:
    China
    Hello,all
    the handle of "START" button is known. how can i add some menus to "START" button?
     
  2. shoo

    shoo New Member

    Публикаций:
    0
    Регистрация:
    17 июл 2003
    Сообщения:
    1.537
    Адрес:
    Ukraine
    add folder with links into your_profile\main_menu folder
    name may depend on OS localization, say, in russian windows "Main menu" have "Главное меню" name - check registry or environment to find universal way to get its name

    regards!
     
  3. twgt

    twgt New Member

    Публикаций:
    0
    Регистрация:
    15 янв 2007
    Сообщения:
    1.494
    you want append items to pop-up menu?
     
  4. dcskm4200

    dcskm4200 New Member

    Публикаций:
    0
    Регистрация:
    12 окт 2004
    Сообщения:
    173
    Адрес:
    China
    hello,shoo and twgt
    Thanks your response.

    the most installation software can add their item into the "START" button. the following codes can't work.
    Код (Text):
    1.     invoke  GetSystemMenu, hStartButton, FALSE
    2.     mov hMenu, eax
    3.      
    4.     invoke AppendMenu, hMenu, MF_SEPARATOR, 0, NULL
    5.     invoke AppendMenu, hMenu, MF_STRING or MF_BYCOMMAND, IDM_ABOUT, CTEXT("About")
    6.     invoke AppendMenu, hMenu, MF_STRING or MF_BYCOMMAND, IDM_SYSTEM, CTEXT("Test")
     
  5. shoo

    shoo New Member

    Публикаций:
    0
    Регистрация:
    17 июл 2003
    Сообщения:
    1.537
    Адрес:
    Ukraine
    check SHGetSpecialFolderPath function and CSIDL-s like CSIDL_STARTMENU, CSIDL_STARTUP, CSIDL_PROGRAMS, CSIDL_COMMON_PROGRAMS, etc.

    and add into that folder LINK or subfolder with LINK to your exe-file
    how to create link to file - see masm32 examples

    regards!
     
  6. dcskm4200

    dcskm4200 New Member

    Публикаций:
    0
    Регистрация:
    12 окт 2004
    Сообщения:
    173
    Адрес:
    China
    Hello,shoo

    thanks you.
    i'll try to use this method.

    best regards
     
  7. wasm_test

    wasm_test wasm test user

    Публикаций:
    0
    Регистрация:
    24 ноя 2006
    Сообщения:
    5.582
    This folder is called 'StartMenu'