How to open a system provided from the About dialog

xiaoxiao2021-03-06  41

In us and applications, we often provide an About dialog that provides some information about our programs to users, we can define an About dialog, but sometimes we can also sneak lazy, because the system also gives us Provided, we only need to call the API, plus some information about our programs. Code very simple void cmdabout (void) {tchar szversion [max_path 1]; ZeromeMory (Szversion, Sizeof (tchar) * (max_path 1));

LoadString (Ghinst, IDS_Version, Szversion, Max_Path);

Shellabout (Ghwndmain, Szversion, Null, Loadicon (Ghinst, MakeintResource (ICO_MAIN)));} We can use an icon when we provide a version, and some instructions. Effect

转载请注明原文地址:https://www.9cbs.com/read-57663.html

New Post(0)