|
Post by Alexander on Apr 30, 2004 20:19:40 GMT -5
no person i know seems to be able to answer me this question...
how do you make a control panel icon in visual basic... you can compile in cpl extension but it doesnt work even if put in the system folder, any ideas?
|
|
|
Post by AbsoluteGenius on May 1, 2004 16:04:07 GMT -5
You have to register the control panel item in the registry, I am usure how, but thats how
|
|
|
Post by Webagent on May 1, 2004 16:29:31 GMT -5
|
|
|
Post by Webagent on May 1, 2004 19:46:58 GMT -5
Control Panel While not being very fancy, this application developed by Farooque Khan, (called ControlPanel) is a small demonstration of how the real Windows Control Panel functions. When the Control Panel is launched, it looks for .cpl files in the Windows system folder. The .cpl files (called applets) are simple DLLs that export the CPlApplet function. For each applet found, the Control Panel loads that DLL with the ::LoadLibrary function call and then uses the GetProcAddress function to realize a pointer to the CPlApplet function. For each applet, it calls the CPlApplet function by passing it different messages such as CPL_INIT, CPL_INQUIRE etc. You can get help about different messages in the online help of MSDN. When the Control Panel calls the CPlApplet function with CPL_INQUIRE message, the .cpl file returns a CPLINFO structure which holds information about that perticular applet such as its name, icon, info tip etc. When the Control Panel applet is double-clicked by the user, the CPlApplet function is called with the CPL_DBLCLK value. At this point, the applet generally displays a dialog from which the user can interact with the applet. Download Demo projectSourcemsdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/programmersguide/shell_adv/conpanel.aspwww.microsoft.com/msj/1199/c/c1199.aspxwww.codeproject.com/shell/cpl.asp?df=100&forumid=12161&exp=0&select=595883ps I was unable to catch sleep lol
|
|