LCBARPANE
From LIVECHAT Developer Zone Wiki
Comment
- Deprecated since ver. 5.2.2.0. Compact mode window no longer contains barpanes.
Used to add a bar pane.
typedef struct LCBARPANE{
int cbSize;
LPCTSTR plugin_name;
UINT id;
LPCTSTR caption;
CDialog* dialog;
HIMAGELIST image_list;
HMENU menu;
LPCTSTR service;
} LCBARPANE;
- 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
- image_list
- list of protocol status icons
- menu
- optional, menu that can be show as an action when the pane button has been pressed
- service
- string that is connected with a function in plugin
- 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);
