--- /dev/null
+#pragma once
+
+namespace nlite{
+
+ const static RECT SEPARATEFSIZE = {5,5,5,5};
+ const static SIZE commentPosBoxSize = {80,0};
+
+ class CCommentWriteWindow:public CWindowImpl<CCommentWriteWindow>{
+
+ CComboBox commentPosBox;
+ CComboBox commentSizeBox;
+ CComboBox commentColorBox;
+ CButton anonymousButton;
+ CEdit comment;
+ CButton commentWriteButton;
+
+
+ //\83\81\83b\83Z\81[\83W\83}\83b\83v
+ BEGIN_MSG_MAP(tn)
+ MSG_WM_CREATE(OnCreate)
+ MSG_WM_DESTROY(OnDestroy)
+ MSG_WM_SIZING(OnSizing)
+ MSG_WM_SIZE(OnSize)
+ END_MSG_MAP()
+
+ LRESULT OnCreate(LPCREATESTRUCT lpReateStruct){
+
+ commentPosBox.Create(m_hWnd,0,WC_COMBOBOX,WS_CHILD | WS_VISIBLE | CBS_DROPDOWNLIST,0);
+ commentSizeBox.Create(m_hWnd,0,WC_COMBOBOX,WS_CHILD | WS_VISIBLE | CBS_DROPDOWNLIST,0);
+ commentColorBox.Create(m_hWnd,0,WC_COMBOBOX,WS_CHILD | WS_VISIBLE | CBS_DROPDOWNLIST,0);
+ anonymousButton.Create(m_hWnd,0,WC_BUTTON,WS_CHILD | WS_VISIBLE | BS_RADIOBUTTON,0);
+ comment.Create(m_hWnd,0,WC_EDIT,WS_CHILD | WS_VISIBLE,0);
+ commentWriteButton.Create(m_hWnd,0,WC_BUTTON,WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON,0);
+
+ return 0;
+ }
+
+ VOID OnDestroy(){
+ commentPosBox.DestroyWindow();
+ commentSizeBox.DestroyWindow();
+ commentColorBox.DestroyWindow();
+ anonymousButton.DestroyWindow();
+ comment.DestroyWindow();
+ commentWriteButton.DestroyWindow();
+
+ }
+
+ VOID OnSizing(UINT wParam,LPRECT lParam){
+
+ RECT client;
+ GetClientRect(&client);
+
+ ChangeSize( _WTYPES_NS::CSize(client.right - client.left,client.bottom - client.top));
+ return;
+ }
+
+ LRESULT OnSize(UINT wParam,SIZE lParam){
+ ChangeSize(lParam);
+ return 0;
+ }
+
+ VOID ChangeSize(SIZE &size){
+
+
+ return;
+ }
+ };
+
+}
\ No newline at end of file
const static LPCTSTR NLITE_MAINWINDOW = TEXT("nlite");
+ const static SIZE lowestFrameSize = {300,300};
class CLiveUserData {
CNicoVideoAuth nicoVideoAuth;
CStatusBarCtrl statusBar;
CLiveUserData userData;
+ CCommentWriteWindow commentWriteWindow;
CTabCtrl tabctrl;
Property nliteProperty;
HFONT hTabFont;
//\83T\83C\83Y\95Ï\8dX\92\86
LRESULT OnSizing(UINT uMsg,WPARAM wParam,LPARAM lParam,BOOL& bHandled){
-
+ ((LPRECT)lParam)->right = ((LPRECT)lParam)->right - ((LPRECT)lParam)->left < lowestFrameSize.cx ? lowestFrameSize.cx + ((LPRECT)lParam)->left : ((LPRECT)lParam)->right;
+ ((LPRECT)lParam)->bottom = ((LPRECT)lParam)->bottom - ((LPRECT)lParam)->top < lowestFrameSize.cy ? lowestFrameSize.cy + ((LPRECT)lParam)->top : ((LPRECT)lParam)->bottom;
RECT client;
GetClientRect(&client);