diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2016-03-30 10:28:13 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2016-03-30 10:28:13 +0000 |
commit | 1c2541a00e52e5dd11c8e5d1036c8208b801b25c (patch) | |
tree | 91bd315067ab922b48a74911d76ca75981392eb3 /protocols/VKontakte/src/vk_dialogs.h | |
parent | 41fa778883c3bbb5c14470b66c35304f894012c6 (diff) |
VKontakte: wall post dialog -> core ui
git-svn-id: http://svn.miranda-ng.org/main/trunk@16564 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_dialogs.h')
-rw-r--r-- | protocols/VKontakte/src/vk_dialogs.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/protocols/VKontakte/src/vk_dialogs.h b/protocols/VKontakte/src/vk_dialogs.h index f881e8f618..bfdbc272c2 100644 --- a/protocols/VKontakte/src/vk_dialogs.h +++ b/protocols/VKontakte/src/vk_dialogs.h @@ -20,6 +20,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. typedef CProtoDlgBase<CVkProto> CVkDlgBase;
+////////////////////////////////// IDD_CAPTCHAFORM ////////////////////////////////////////
+
struct CAPTCHA_FORM_PARAMS
{
HBITMAP bmp;
@@ -44,4 +46,45 @@ public: void On_btnOk_Click(CCtrlButton*);
void On_edtValue_Change(CCtrlEdit*);
+};
+
+////////////////////////////////// IDD_WALLPOST ///////////////////////////////////////////
+
+struct WALLPOST_FORM_PARAMS
+{
+ TCHAR* ptszMsg;
+ TCHAR* ptszUrl;
+ TCHAR* ptszNick;
+ bool bFriendsOnly;
+
+ WALLPOST_FORM_PARAMS(TCHAR* nick) :
+ ptszNick(nick),
+ bFriendsOnly(false)
+ {
+ ptszMsg = ptszUrl = NULL;
+ }
+
+ ~WALLPOST_FORM_PARAMS()
+ {
+ mir_free(ptszMsg);
+ mir_free(ptszUrl);
+ mir_free(ptszNick);
+ }
+};
+
+class WallPostForm : public CVkDlgBase
+{
+ CCtrlEdit m_edtMsg;
+ CCtrlEdit m_edtUrl;
+ CCtrlCheck m_cbOnlyForFriends;
+ CCtrlButton m_btnShare;
+
+ WALLPOST_FORM_PARAMS* m_param;
+
+public:
+ WallPostForm(CVkProto *proto, WALLPOST_FORM_PARAMS* param);
+ void OnInitDialog();
+ void OnDestroy();
+ void On_btnShare_Click(CCtrlButton*);
+ void On_edtValue_Change(CCtrlEdit*);
};
\ No newline at end of file |