{}
+BOOL CCommentWriteWindow::IsWrighthing(){
+
+ return this->commentSubEdit.untilConnectingFlag;
+
+}
+
UINT_PTR CCommentWriteWindow::GetHeight(){
return commentWriteHeight + infoDispHeight - COMMENTWRITEWINDOW_SEPARATEFSIZE.top;
VOID CSubChatEdit::EnterChatBox(LPVOID userData){
+
auto owner = ((CSubChatEdit*)userData)->self;
auto &self = *((CSubChatEdit*)userData);
CCommentMaker commentMaker;
- if((owner.nicoLiveStream.IsOwner())){
-
- Sleep(1000);
-
- }else {
- Sleep(3000);
- }
- ((CSubChatEdit*)userData)->AgreeEnter();
+
+ self.AgreeEnter();
_endthread();
return;
}
BOOL CCommentWriteWindow::SendChat(){
-
+ this->commentSubEdit.untilConnectingFlag = TRUE;
this->commentSubEdit.SetReadOnly(TRUE);
_beginthread(CSubChatEdit::EnterChatBox,0,&this->commentSubEdit);
cs.Lock();
if(untilConnectingFlag == FALSE){
- untilConnectingFlag = TRUE;
+
self.SendChat();
class CCommentWriteWindow;
class CSubChatEdit:public CWindowImpl<CSubChatEdit,CEdit>{
-
+ friend CCommentWriteWindow;
private:
CCommentWriteWindow(CNicoLiveStream &nicoLiveStream);
///
+ ///\8c»\8dÝ\8f\91\82«\8d\9e\82Ý\8f\88\97\9d\92\86\82©\82Ì\83t\83\89\83O\8am\94F
+ ///
+ BOOL IsWrighthing();
+
+
+ ///
///\82±\82Ì\83E\83B\83\93\83h\83E\82Ì\8d\82\82³\82ð\8eæ\93¾
///
UINT_PTR GetHeight();
BOOL rslt = FALSE;
- if(this->subLiveNoComboBox.untilConnectingFlag == TRUE){
- ::SetCursor(::LoadCursorW(NULL,IDC_WAIT));
+ if(this->subLiveNoComboBox.untilConnectingFlag == TRUE || this->commentWriteWindow.IsWrighthing() == TRUE){
+
+ if(this->subLiveNoComboBox.untilConnectingFlag == TRUE){
+ ::SetCursor(::LoadCursorW(NULL,IDC_WAIT));
+ } else if(this->commentWriteWindow.IsWrighthing() == TRUE){
+ ::SetCursor(::LoadCursorW(NULL,IDC_APPSTARTING));
+ }
bHandled = TRUE;
rslt = TRUE;
- } else {
+
+
+
+ } else {
bHandled = FALSE;
}