Wtl Windows Mobile programming: Add left and right menus to the dialog box

Source: Internet
Author: User

Lresult oninitdialog (uint/* umsg */, wparam/* wparam */, lparam/* lparam */, bool & bhandled)
{
// Comment out this sentence: atlcreateemptymenubar (m_hwnd );

// 1 Add the menu resource idr_left to the menu resource, which contains two menu items: id_newproject_ OK and id_newproject_cancel
// 2 Add the string corresponding to the above two IDs to the string table Resource
// 3: Add the following Code :
/*
Idr_left shmenubar discardable
Begin
Idr_left,
2,
I _imagenone, id_newproject_ OK, tbstate_enabled, tbstyle_autosize, id_newproject_ OK, 0, nomenu,
I _imagenone, id_newproject_cancel, tbstate_enabled, tbstyle_autosize, id_newproject_cancel, 0, nomenu,
End
*/

// Add the following sentence:

Createmenubar (idr_left );

Return bhandled = false;
}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.