l2-unlegits/l2ooghelper/NpcHtmlMessageDlg.h
2012-02-01 05:25:08 +00:00

40 lines
1.0 KiB
C++

#ifndef H_NPC_HTML_MESSAGE_DLG
#define H_NPC_HTML_MESSAGE_DLG
class NpcHtmlMessageDlg
{
public:
NpcHtmlMessageDlg( void *pvL2Client );
~NpcHtmlMessageDlg();
public:
bool createDialog( HWND hWndParent );
void destroyDialog();
void showWindow( bool bShow );
void displayNPCHTML( const TCHAR *html, L2Npc *pNpc,
unsigned int itemID = 0, unsigned int questID = 0 );
protected:
HWND m_hDlg;
HWND m_hWndParent;
TCHAR *m_html;
unsigned int m_itemID;
unsigned int m_questID;
L2Npc *m_npc;
void *m_pvL2Client;
// child windows
HWND m_hWndHtml;
HWND m_hWndCombo;
HWND m_hWndBypassText;
protected:
static INT_PTR CALLBACK NpcHtmlMessageDlgProc( HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam );
static void wnd_initHtml( HWND hDlg );
static void wnd_onCancel( HWND hDlg );
static void wnd_onOK( HWND hDlg );
static void wnd_onCombo1SelChange( HWND hDlg );
static void wnd_onDestroy( HWND hDlg );
};
#endif