What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » Using DialogBox function

Using DialogBox function
Author: Message:
oberststen
Junior Member
**

oberst.tk

Posts: 23
35 / Male / –
Joined: Jan 2003
O.P. RE: Using DialogBox function
here it is, i only paste the important parts

#include "resource.h"

LRESULT CALLBACK    Help(HWND, UINT, WPARAM, LPARAM);

HINSTANCE hInst;
HWND hWnd;

MPPLUGIN_RETURN_BOOL ParseCommand(/*[in]*/  const char* sCommand,
                                  /*[in]*/  const char* sCommandArg,
                                  /*[in]*/  PLUGIN_PARAM* pParam,
                                  /*[out]*/ char* sResult)
{
    if(stricmp(sCommand, "/xhelp") == 0)
    {
        DialogBox(hInst, (LPCTSTR)IDD_HELP, hWnd, (DLGPROC)Help);

        strcpy(sResult, "");
        return TRUE;
    }

    else if(stricmp(sCommand, "/xping") == 0)
    {
        strcpy(sResult, sCCNotify);
        strcat(sResult, "smppg"); //The notify code must be 5 characters long
        strcat(sResult, "Ping?");
        return TRUE;
    }
    return FALSE;
}

LRESULT CALLBACK Help(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
{
    switch (message)
    {
        case WM_INITDIALOG:
                return TRUE;

        case WM_COMMAND:
            if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL)
            {
                EndDialog(hDlg, LOWORD(wParam));
                return TRUE;
            }
            break;
    }
    return FALSE;
}

This post was edited on 07-09-2003 at 09:36 PM by oberststen.
07-09-2003 09:36 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Using DialogBox function - by oberststen on 07-09-2003 at 09:18 PM
RE: Using DialogBox function - by allex87 on 07-09-2003 at 09:22 PM
RE: Using DialogBox function - by oberststen on 07-09-2003 at 09:36 PM
RE: Using DialogBox function - by allex87 on 07-10-2003 at 02:00 AM
RE: Using DialogBox function - by oberststen on 07-10-2003 at 03:27 AM
RE: Using DialogBox function - by allex87 on 07-10-2003 at 03:31 AM
RE: Using DialogBox function - by mikelo2k on 07-10-2003 at 03:37 AM
RE: Using DialogBox function - by allex87 on 07-10-2003 at 03:39 AM
RE: Using DialogBox function - by oberststen on 07-10-2003 at 03:23 PM
RE: RE: Using DialogBox function - by n3tfusiOn on 07-10-2003 at 05:00 PM
RE: Using DialogBox function - by oberststen on 07-10-2003 at 06:53 PM
RE: Using DialogBox function - by allex87 on 07-11-2003 at 11:27 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On