亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? cebtnst.cpp

?? irda communication on PPC. 和IrdaMobilePCSrc.zip一起使用。
?? CPP
?? 第 1 頁 / 共 3 頁
字號:
int CCeButtonST::GetCheck()
{
	return m_nCheck;
} // End of GetCheck

// This function sets all colors to a default value.
//
// Parameters:
//		[IN]	bRepaint
//				If TRUE the control will be repainted.
//
// Return value:
//		BTNST_OK
//			Function executed successfully.
//
DWORD CCeButtonST::SetDefaultColors(BOOL bRepaint)
{
	m_crColors[BTNST_COLOR_BK_IN]		= ::GetSysColor(COLOR_BTNFACE);
	m_crColors[BTNST_COLOR_FG_IN]		= ::GetSysColor(COLOR_BTNTEXT);
	m_crColors[BTNST_COLOR_BK_OUT]		= ::GetSysColor(COLOR_BTNFACE);
	m_crColors[BTNST_COLOR_FG_OUT]		= ::GetSysColor(COLOR_BTNTEXT);
	m_crColors[BTNST_COLOR_BK_FOCUS]	= ::GetSysColor(COLOR_BTNFACE);
	m_crColors[BTNST_COLOR_FG_FOCUS]	= ::GetSysColor(COLOR_BTNTEXT);

	if (bRepaint)	Invalidate();

	return BTNST_OK;
} // End of SetDefaultColors

// This function sets the color to use for a particular state.
//
// Parameters:
//		[IN]	byColorIndex
//				Index of the color to set. Can be one of the following values:
//				BTNST_COLOR_BK_IN		Background color when mouse is over the button
//				BTNST_COLOR_FG_IN		Text color when mouse is over the button
//				BTNST_COLOR_BK_OUT		Background color when mouse is outside the button
//				BTNST_COLOR_FG_OUT		Text color when mouse is outside the button
//				BTNST_COLOR_BK_FOCUS	Background color when the button is focused
//				BTNST_COLOR_FG_FOCUS	Text color when the button is focused
//		[IN]	crColor
//				New color.
//		[IN]	bRepaint
//				If TRUE the control will be repainted.
//
// Return value:
//		BTNST_OK
//			Function executed successfully.
//		BTNST_INVALIDINDEX
//			Invalid color index.
//
DWORD CCeButtonST::SetColor(BYTE byColorIndex, COLORREF crColor, BOOL bRepaint)
{
	if (byColorIndex >= BTNST_MAX_COLORS)	return BTNST_INVALIDINDEX;

	// Set new color
	m_crColors[byColorIndex] = crColor;

	if (bRepaint)	Invalidate();

	return BTNST_OK;
} // End of SetColor

// This functions returns the color used for a particular state.
//
// Parameters:
//		[IN]	byColorIndex
//				Index of the color to get. Can be one of the following values:
//				BTNST_COLOR_BK_IN		Background color when mouse is over the button
//				BTNST_COLOR_FG_IN		Text color when mouse is over the button
//				BTNST_COLOR_BK_OUT		Background color when mouse is outside the button
//				BTNST_COLOR_FG_OUT		Text color when mouse is outside the button
//				BTNST_COLOR_BK_FOCUS	Background color when the button is focused
//				BTNST_COLOR_FG_FOCUS	Text color when the button is focused
//		[OUT]	crpColor
//				A pointer to a COLORREF that will receive the color.
//
// Return value:
//		BTNST_OK
//			Function executed successfully.
//		BTNST_INVALIDINDEX
//			Invalid color index.
//
DWORD CCeButtonST::GetColor(BYTE byColorIndex, COLORREF* crpColor)
{
	if (byColorIndex >= BTNST_MAX_COLORS)	return BTNST_INVALIDINDEX;

	// Get color
	*crpColor = m_crColors[byColorIndex];

	return BTNST_OK;
} // End of GetColor

// This function sets the hilight logic for the button.
// Applies only to flat buttons.
//
// Parameters:
//		[IN]	bAlwaysTrack
//				If TRUE the button will be hilighted even if the window that owns it, is
//				not the active window.
//				If FALSE the button will be hilighted only if the window that owns it,
//				is the active window.
//
// Return value:
//		BTNST_OK
//			Function executed successfully.
//
DWORD CCeButtonST::SetAlwaysTrack(BOOL bAlwaysTrack)
{
	m_bAlwaysTrack = bAlwaysTrack;
	return BTNST_OK;
} // End of SetAlwaysTrack

// This function sets the cursor to be used when the mouse is over the button.
//
// Parameters:
//		[IN]	nCursorId
//				ID number of the cursor resource.
//				Pass NULL to remove a previously loaded cursor.
//		[IN]	bRepaint
//				If TRUE the control will be repainted.
//
// Return value:
//		BTNST_OK
//			Function executed successfully.
//		BTNST_INVALIDRESOURCE
//			Failed loading the specified resource.
//
DWORD CCeButtonST::SetBtnCursor(int nCursorId, BOOL bRepaint)
{
	HINSTANCE	hInstResource = NULL;
	// Restore old cursor (if any)
	if (m_hOldCursor)	::SetCursor(m_hOldCursor);
	// Destroy the cursor (if any)
	if (m_hCursor)	::DestroyCursor(m_hCursor);
	m_hCursor = NULL;
	m_hOldCursor = NULL;

	// Load cursor
	if (nCursorId)
	{
		hInstResource = AfxFindResourceHandle(MAKEINTRESOURCE(nCursorId), RT_GROUP_CURSOR);
		// Load cursor resource
		m_hCursor = (HCURSOR)::LoadImage(hInstResource, MAKEINTRESOURCE(nCursorId), IMAGE_CURSOR, 0, 0, 0);
		// Repaint the button
		if (bRepaint) Invalidate();
		// If something wrong
		if (m_hCursor == NULL) return BTNST_INVALIDRESOURCE;
	} // if

	return BTNST_OK;
} // End of SetBtnCursor

// This function sets if the button border must be drawn.
// Applies only to flat buttons.
//
// Parameters:
//		[IN]	bDrawBorder
//				If TRUE the border will be drawn.
//		[IN]	bRepaint
//				If TRUE the button will be repainted.
//
// Return value:
//		BTNST_OK
//			Function executed successfully.
//
DWORD CCeButtonST::DrawBorder(BOOL bDrawBorder, BOOL bRepaint)
{
	m_bDrawBorder = bDrawBorder;
	// Repaint the button
	if (bRepaint) Invalidate();

	return BTNST_OK;
} // End of DrawBorder

// This function sets if the focus rectangle must be drawn for flat buttons.
//
// Parameters:
//		[IN]	bDrawFlatFocus
//				If TRUE the focus rectangle will be drawn also for flat buttons.
//		[IN]	bRepaint
//				If TRUE the control will be repainted.
//
// Return value:
//		BTNST_OK
//			Function executed successfully.
//
DWORD CCeButtonST::DrawFlatFocus(BOOL bDrawFlatFocus, BOOL bRepaint)
{
	m_bDrawFlatFocus = bDrawFlatFocus;
	// Repaint the button
	if (bRepaint) Invalidate();

	return BTNST_OK;
} // End of DrawFlatFocus

// This function returns if the button is the default button.
//
// Return value:
//		TRUE
//			The button is the default button.
//		FALSE
//			The button is not the default button.
//
BOOL CCeButtonST::GetDefault()
{
	return m_bIsDefault;
} // End of GetDefault

// This function sets the URL that will be opened when the button is clicked.
//
// Parameters:
//		[IN]	lpszURL
//				Pointer to a null-terminated string that contains the URL.
//				Pass NULL to remove any previously specified URL.
//
// Return value:
//		BTNST_OK
//			Function executed successfully.
//
DWORD CCeButtonST::SetURL(LPCTSTR lpszURL)
{
	// Remove any existing URL
	memset(m_szURL, 0, sizeof(m_szURL));

	if (lpszURL)
	{
		// Store the URL
		_tcsncpy(m_szURL, lpszURL, _MAX_PATH);
	} // if

	return BTNST_OK;
} // End of SetURL

BOOL CCeButtonST::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message)
{
	HCURSOR	hOldCursor;

	// If a cursor was specified then use it!
	if (m_hCursor != NULL)
	{
		hOldCursor = ::SetCursor(m_hCursor);
		// Store old cursor
		if (!m_hOldCursor)	m_hOldCursor = hOldCursor;
		return TRUE;
	} // if

	return CButton::OnSetCursor(pWnd, nHitTest, message);
} // End of OnSetCursor

// This function associates a menu to the button.
// The menu will be displayed clicking the button.
//
// Parameters:
//		[IN]	nMenu
//				ID number of the menu resource.
//				Pass NULL to remove any menu from the button.
//		[IN]	hParentWnd
//				Handle to the window that owns the menu.
//				This window receives all messages from the menu.
//		[IN]	bRepaint
//				If TRUE the control will be repainted.
//
// Return value:
//		BTNST_OK
//			Function executed successfully.
//		BTNST_INVALIDRESOURCE
//			Failed loading the specified resource.
//
DWORD CCeButtonST::SetMenu(UINT nMenu, HWND hParentWnd, BOOL bRepaint)
{
	HINSTANCE	hInstResource	= NULL;

	// Destroy any previous menu
	if (m_hMenu)
	{
		::DestroyMenu(m_hMenu);
		m_hMenu = NULL;
		m_hParentWndMenu = NULL;
		m_bMenuDisplayed = FALSE;
	} // if

	// Load menu
	if (nMenu)
	{
		// Find correct resource handle
		hInstResource = AfxFindResourceHandle(MAKEINTRESOURCE(nMenu), RT_MENU);
		// Load menu resource
		m_hMenu = ::LoadMenu(hInstResource, MAKEINTRESOURCE(nMenu));
		m_hParentWndMenu = hParentWnd;
		// If something wrong
		if (m_hMenu == NULL) return BTNST_INVALIDRESOURCE;
	} // if

	// Repaint the button
	if (bRepaint) Invalidate();

	return BTNST_OK;
} // End of SetMenu

// This function is called every time the button background needs to be painted.
//
// Parameters:
//		[IN]	pDC
//				Pointer to a CDC object that indicates the device context.
//		[IN]	pRect
//				Pointer to a CRect object that indicates the bounds of the
//				area to be painted.
//
// Return value:
//		BTNST_OK
//			Function executed successfully.
//
DWORD CCeButtonST::OnDrawBackground(CDC* pDC, LPCRECT pRect)
{
	COLORREF	crColor;

	if (m_bMouseOnButton || m_bIsPressed)
		crColor = m_crColors[BTNST_COLOR_BK_IN];
	else
	{
		if (m_bIsFocused)
			crColor = m_crColors[BTNST_COLOR_BK_FOCUS];
		else
			crColor = m_crColors[BTNST_COLOR_BK_OUT];
	} // else

	CBrush		brBackground(crColor);

	pDC->FillRect(pRect, &brBackground);

	return BTNST_OK;
} // End of OnDrawBackground

// This function is called every time the button border needs to be painted.
//
// Parameters:
//		[IN]	pDC
//				Pointer to a CDC object that indicates the device context.
//		[IN]	pRect
//				Pointer to a CRect object that indicates the bounds of the
//				area to be painted.
//
// Return value:
//		BTNST_OK
//			Function executed successfully.
//
DWORD CCeButtonST::OnDrawBorder(CDC* pDC, LPCRECT pRect)
{
	if (m_bIsPressed)
		pDC->Draw3dRect(pRect, ::GetSysColor(COLOR_BTNSHADOW), ::GetSysColor(COLOR_BTNHIGHLIGHT));
	else
		if (m_bIsFlat == FALSE || (m_bIsFlat && m_bMouseOnButton))
			pDC->Draw3dRect(pRect, ::GetSysColor(COLOR_BTNHIGHLIGHT), ::GetSysColor(COLOR_BTNSHADOW));

	return BTNST_OK;
} // End of OnDrawBorder

void CALLBACK CCeButtonST::TimerProc(HWND hwnd, UINT uMsg, UINT idEvent, DWORD dwTime)
{
	POINT	csPos;
	RECT	csRect;

	::GetCursorPos(&csPos);
    ::ScreenToClient(hwnd, &csPos);

	::GetClientRect(hwnd, &csRect);

	if (!::PtInRect(&csRect, csPos))
	{
		::PostMessage(hwnd, WM_MOUSELEAVE, 0, 0);
		//m_bMouseOnButton = FALSE;
		//Invalidate();
	} // if
} // End of TimerProc

#undef BS_TYPEMASK
#undef WM_MOUSELEAVE

/*
void CCeButtonST::OnCaptureChanged(CWnd *pWnd) 
{
	if (m_bMouseOnButton)
	{
		ReleaseCapture();
		Invalidate();
	} // if

	CButton::OnCaptureChanged(pWnd);
} // End of OnCaptureChanged
*/

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美喷水一区二区| 99久久99久久综合| 一本到一区二区三区| 国产日韩欧美在线一区| 国内精品第一页| 成人av资源在线观看| 欧美午夜精品一区二区三区| 制服丝袜亚洲精品中文字幕| 精品国产乱码久久久久久夜甘婷婷| 国产一区二区0| 97精品国产露脸对白| gogo大胆日本视频一区| 欧美三级资源在线| 国产人伦精品一区二区| 91精品久久久久久蜜臀| 国产精品视频一二三区| 日韩av一区二区三区四区| 成人国产精品免费观看视频| 国产一区二区三区最好精华液 | 在线看日本不卡| 久久一夜天堂av一区二区三区| 国产精品一级二级三级| 色琪琪一区二区三区亚洲区| 精品国产一区二区三区忘忧草| 欧美日韩高清一区二区不卡| 波多野结衣一区二区三区 | 国产精品一卡二卡在线观看| 欧美精品三级日韩久久| 夜夜揉揉日日人人青青一国产精品| 久久免费视频色| 麻豆国产一区二区| 韩国成人福利片在线播放| 欧美片在线播放| 蜜桃视频免费观看一区| 老司机免费视频一区二区三区| 日本成人中文字幕在线视频| 亚洲高清免费观看高清完整版在线观看| 亚洲欧美激情插| 日韩高清不卡一区二区| 91精品久久久久久久99蜜桃| 天天射综合影视| 日韩午夜激情视频| 精品午夜一区二区三区在线观看| 久久爱www久久做| 国产乱码精品一品二品| 国产三级精品三级在线专区| 国产成人av影院| 亚洲成人一区在线| 欧美一区二区大片| 91免费看视频| 亚洲线精品一区二区三区 | 亚洲一区二区三区四区在线免费观看| 偷窥少妇高潮呻吟av久久免费| 久久99国产精品久久| 亚洲国产高清不卡| 欧美一区二区日韩一区二区| 韩国三级在线一区| 尤物av一区二区| 久久精品水蜜桃av综合天堂| 欧美在线观看18| 成人黄色在线看| 久久精品久久99精品久久| 亚洲国产视频一区| 一区二区三区精品久久久| 久久精品亚洲精品国产欧美| 欧美猛男男办公室激情| 日本精品一区二区三区四区的功能| 精品少妇一区二区三区| 99re在线视频这里只有精品| 国产福利不卡视频| 三级精品在线观看| 一区二区成人在线观看| 亚洲老司机在线| 国产精品久久久久久久久果冻传媒 | 蜜臀av性久久久久蜜臀aⅴ四虎| 精品国产成人在线影院| 欧美大片顶级少妇| 精品国产乱码久久久久久牛牛| 麻豆精品一区二区三区| 日韩一区二区三区三四区视频在线观看| 亚洲成a人v欧美综合天堂| 日本韩国欧美三级| 欧洲视频一区二区| 青椒成人免费视频| 久久精品国产亚洲5555| 麻豆精品国产传媒mv男同| 狠狠狠色丁香婷婷综合久久五月| 日本一区二区免费在线观看视频| 高清在线成人网| 91麻豆国产福利精品| 欧美人妇做爰xxxⅹ性高电影| 日韩成人午夜电影| 国产一区二区三区综合| 91香蕉视频黄| 日韩免费观看2025年上映的电影| 国产精品一区二区三区网站| 成人免费毛片片v| 欧美群妇大交群的观看方式| 日韩美一区二区三区| 中文字幕精品一区| 午夜日韩在线观看| 中文字幕精品一区| 免费亚洲电影在线| 一本到一区二区三区| 2019国产精品| 亚洲gay无套男同| 高清成人免费视频| 日韩网站在线看片你懂的| 国产精品不卡在线| 激情图区综合网| 91.com在线观看| 一区二区三区日韩| 亚洲综合精品自拍| 成人av在线看| 国产精品嫩草久久久久| 国产乱色国产精品免费视频| 日韩一级免费一区| 免费高清在线视频一区·| 欧美人与性动xxxx| 狠狠狠色丁香婷婷综合激情 | 另类调教123区| 日韩美一区二区三区| 秋霞电影一区二区| 精品福利av导航| 国产精品一线二线三线精华| 久久综合九色综合97_久久久| 精品久久人人做人人爱| 狠狠色综合播放一区二区| 久久久综合视频| 成人av在线观| 亚洲第一电影网| 国产一区二区在线视频| 久久美女高清视频| 色综合色狠狠综合色| 欧美酷刑日本凌虐凌虐| 蜜桃免费网站一区二区三区| 久久中文字幕电影| 91麻豆免费看片| 美女高潮久久久| 中文av一区二区| 欧美四级电影在线观看| 久久精品久久综合| 又紧又大又爽精品一区二区| 91 com成人网| 亚洲欧洲99久久| 欧美高清性hdvideosex| 中文字幕亚洲欧美在线不卡| 欧美日韩一级二级三级| 国产成人在线免费| 日韩经典中文字幕一区| 国产精品毛片久久久久久| 欧美一卡2卡三卡4卡5免费| 99久久综合色| 高清视频一区二区| 九九精品一区二区| 日韩av在线播放中文字幕| 欧美视频一区二区三区在线观看| 亚洲欧美自拍偷拍色图| 制服丝袜中文字幕亚洲| 欧美日韩一区三区| 欧美亚洲综合网| 91天堂素人约啪| 国产精品福利av| 日本伦理一区二区| jizz一区二区| 99精品欧美一区二区三区综合在线| 国产精品免费人成网站| 成人动漫在线一区| 99久久99久久精品国产片果冻| 国产日韩精品视频一区| 精品国产免费一区二区三区四区| 91麻豆免费在线观看| k8久久久一区二区三区| 91小视频在线观看| 色欧美乱欧美15图片| 欧美高清激情brazzers| 欧美成人三级在线| 国产亚洲一二三区| 中文字幕欧美三区| 亚洲色大成网站www久久九九| 在线亚洲高清视频| 欧美一级在线观看| 欧美国产禁国产网站cc| 欧美色图天堂网| 久久日一线二线三线suv| 欧美国产国产综合| 日韩电影在线观看网站| 国产成人免费视频精品含羞草妖精 | 欧美精品第1页| 久久综合视频网| 欧美日韩一区二区三区四区五区| 精品一区二区三区视频在线观看| 中文字幕制服丝袜成人av| 亚洲一区在线电影| 国产成人激情av| 日韩亚洲欧美高清| 精品视频在线免费看| 亚洲国产成人私人影院tom| 亚洲夂夂婷婷色拍ww47| 国产宾馆实践打屁股91|