-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from Init-INK/master
添加小班课功能
- Loading branch information
Showing
47 changed files
with
293 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#include "stdafx.h" | ||
#include "CMinClassDataShowView.h" | ||
|
||
|
||
CMinClassDataShowView::CMinClassDataShowView() | ||
{ | ||
} | ||
|
||
|
||
CMinClassDataShowView::~CMinClassDataShowView() | ||
{ | ||
} | ||
|
||
void CMinClassDataShowView::setShowPictures() | ||
{ | ||
CUpUserInfo* pUpUserInfo = NULL; | ||
int useIndex = 1; | ||
EnterCriticalSection(&m_critPicture); | ||
int nSize = (int)m_upUserInfoArr.size(); | ||
CRect rect = m_DrawRect; | ||
|
||
int nHeight = (int)(rect.Height()*0.25f); | ||
if (nSize > 4) | ||
{ | ||
nHeight = (int)(rect.Height()/ (float)nSize); | ||
} | ||
|
||
for (int i = 0; i < nSize; i++) | ||
{ | ||
CRect smallRect; | ||
smallRect.left = rect.left; | ||
smallRect.top = rect.top + i *nHeight; | ||
smallRect.right = rect.right; | ||
smallRect.bottom = smallRect.top + nHeight; | ||
m_upUserInfoArr[i]->m_showRect = smallRect; | ||
m_upUserInfoArr[i]->m_pPictureControl->MoveWindow(smallRect); | ||
m_upUserInfoArr[i]->m_pPictureControl->ShowWindow(SW_SHOW); | ||
|
||
} | ||
LeaveCriticalSection(&m_critPicture); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#pragma once | ||
#include "CDataShowView.h" | ||
class CMinClassDataShowView : | ||
public CDataShowView | ||
{ | ||
public: | ||
CMinClassDataShowView(); | ||
virtual ~CMinClassDataShowView(); | ||
|
||
virtual void setShowPictures(); | ||
}; | ||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
#include "stdafx.h" | ||
#include "CStarWhitePanel.h" | ||
|
||
|
||
CStarWhitePanel::CStarWhitePanel() | ||
{ | ||
m_bDraw = false; | ||
m_bLaserOn = false; | ||
} | ||
|
||
|
||
CStarWhitePanel::~CStarWhitePanel() | ||
{ | ||
m_bDraw = false; | ||
} | ||
BEGIN_MESSAGE_MAP(CStarWhitePanel, CStatic) | ||
ON_WM_LBUTTONDOWN() | ||
ON_WM_MOUSEMOVE() | ||
ON_WM_LBUTTONUP() | ||
//ON_WM_PAINT() | ||
END_MESSAGE_MAP() | ||
|
||
|
||
void CStarWhitePanel::OnLButtonDown(UINT nFlags, CPoint point) | ||
{ | ||
// TODO: 在此添加消息处理程序代码和/或调用默认值 | ||
AfxMessageBox("111"); | ||
m_bDraw = true; | ||
m_StartPoint = point; | ||
CStatic::OnLButtonDown(nFlags, point); | ||
} | ||
|
||
|
||
void CStarWhitePanel::OnMouseMove(UINT nFlags, CPoint point) | ||
{ | ||
// TODO: 在此添加消息处理程序代码和/或调用默认值 | ||
CClientDC dc(this); | ||
if (m_bDraw) | ||
{ | ||
dc.MoveTo(m_StartPoint); | ||
dc.LineTo(point); | ||
m_StartPoint = point; | ||
} | ||
CStatic::OnMouseMove(nFlags, point); | ||
} | ||
|
||
|
||
void CStarWhitePanel::OnLButtonUp(UINT nFlags, CPoint point) | ||
{ | ||
// TODO: 在此添加消息处理程序代码和/或调用默认值 | ||
m_bDraw = false; | ||
CStatic::OnLButtonUp(nFlags, point); | ||
} | ||
// | ||
// | ||
//void CStarWhitePanel::OnPaint() | ||
//{ | ||
// CPaintDC dc(this); | ||
// //dc.SetBkMode(TRANSPARENT); | ||
//} | ||
// | ||
//打开激光笔 | ||
void CStarWhitePanel::laserPenOn() | ||
{ | ||
m_bLaserOn = true; | ||
} | ||
//关闭激光笔 | ||
void CStarWhitePanel::laserPenOff() | ||
{ | ||
m_bLaserOn = false; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#pragma once | ||
#include <afxwin.h> | ||
|
||
|
||
class CStarWhitePanel : | ||
public CStatic | ||
{ | ||
public: | ||
CStarWhitePanel(); | ||
~CStarWhitePanel(); | ||
DECLARE_MESSAGE_MAP() | ||
afx_msg void OnLButtonDown(UINT nFlags, CPoint point); | ||
afx_msg void OnMouseMove(UINT nFlags, CPoint point); | ||
afx_msg void OnLButtonUp(UINT nFlags, CPoint point); | ||
//afx_msg void OnPaint(); | ||
public: | ||
//´ňżŞź¤šâąĘ | ||
void laserPenOn(); | ||
//šŘąŐź¤šâąĘ | ||
void laserPenOff(); | ||
|
||
private: | ||
bool m_bDraw; | ||
bool m_bLaserOn; | ||
CPoint m_StartPoint; | ||
}; | ||
|
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#pragma once | ||
#include "WhitePanelActionType.h" | ||
#include "atltypes.h" | ||
class CScreenPoint | ||
{ | ||
public: | ||
double x; | ||
double y; | ||
}; | ||
|
||
class CWhitePanelInfo | ||
{ | ||
public: | ||
WHITE_PANEL_ACTION type; | ||
CScreenPoint point; | ||
int lineColor; | ||
}; | ||
class IWhitePanelCallback | ||
{ | ||
public: | ||
virtual void actionCallback(WHITE_PANEL_ACTION type, CScreenPoint& point, int lineColor) = 0; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#pragma once | ||
|
||
|
||
enum WHITE_PANEL_ACTION { | ||
WHITE_PANEL_EMPTY, //0 无 | ||
WHITE_PANEL_START, //1 笔画起点 | ||
WHITE_PANEL_MOVE, //2 笔画移动 | ||
WHITE_PANEL_END, //3 笔画终点 | ||
WHITE_PANEL_REVOKE, //4 撤销 | ||
WHITE_PANEL_SERIAL, //5 | ||
WHITE_PANEL_CLEAR, //6 清除 | ||
WHITE_PANEL_CLEAR_ACK, //7 清除反馈 | ||
WHITE_PANEL_SYNC_REQUEST, //8 同步请求 | ||
WHITE_PANEL_SYNC, //9 同步 | ||
WHITE_PANEL_SYNC_PREPARE, //10 同步准备 | ||
WHITE_PANEL_SYNC_PREPARE_ACK,//11 同步准备反馈 | ||
WHITE_PANEL_LASER_PEN, //12 激光笔 | ||
WHITE_PANEL_LASER_PEN_END, //13 激光笔结束 | ||
WHITE_PANEL_FILE //14 文件 | ||
}; |
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.