LCPANEL
From LIVECHAT Developer Zone Wiki
Used as an panel to add in main application window.
typedef struct LCPANEL{
int cbSize;
LPCTSTR plugin_name;
UINT id;
LPCTSTR caption;
CDialog* dialog;
PanelDirection direction;
RECT rect;
} LCPANEL;
- Members
- cbSize
- size of the AccountInfo structure
- plugin_name
- name of the plugin
- id
- unique panel identifier
- caption
- panel caption
- dialog
- pointer to dialog window
- direction
- which side of screen the panel is attached to
- rect
- rectangle where the dialog will be displayed
- Remarks
To create a dialog from the resources defined in Plugin.rc you must switch to plugin resources. To do that you need to add the following code in the beginning of the function that creates the dialog:
CDialog* pDialog = new CSampleDialog(); // Custom child window HINSTANCE instance = AfxGetResourceHandle(); AfxSetResourceHandle(mInstance); if (pDialog) pDialog->Create(CSampleDialog::IDD); AfxSetResourceHandle(instance);
