本文整理汇总了C++中OnLButtonUp函数的典型用法代码示例。如果您正苦于以下问题:C++ OnLButtonUp函数的具体用法?C++ OnLButtonUp怎么用?C++ OnLButtonUp使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了OnLButtonUp函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: switch
LRESULT CDreamSkinSpinCtrl::DefWindowProc(UINT message, WPARAM wParam, LPARAM lParam)
{
LRESULT nResult = ERROR_SUCCESS;
switch(message)
{
case WM_ERASEBKGND:
break;
case WM_LBUTTONDBLCLK:
nResult = ::SendMessageW(m_hWnd, WM_LBUTTONDOWN, wParam, lParam);
break;
case WM_LBUTTONDOWN:
nResult = OnLButtonDown(wParam, MAKEPOINTS(lParam));
break;
case WM_LBUTTONUP:
nResult = OnLButtonUp(wParam, MAKEPOINTS(lParam));
break;
case WM_MOUSELEAVE:
nResult = OnMouseLeave();
break;
case WM_MOUSEMOVE:
nResult = OnMouseMove(wParam, MAKEPOINTS(lParam));
break;
case WM_PAINT:
nResult = OnPaint();
break;
default:
nResult = CDreamSkinWindow::DefWindowProc(message, wParam, lParam);
}
return nResult;
}
示例2: switch
//////////////////
// Message handler handles caption-related messages
//
BOOL CCaptionPainter::RelayEvent(MSG* pMsg)
{
switch (pMsg->message)
{
case WM_MOUSEMOVE:
return OnMouseMoveMsg(pMsg->pt);
case WM_LBUTTONUP:
return OnLButtonUp(pMsg->lParam, pMsg->pt);
case WM_NCPAINT:
return OnNcPaint(HRGN(pMsg->wParam));
case WM_NCACTIVATE:
return OnNcActivate(pMsg->wParam);
case WM_SETTEXT:
return OnSetText((LPCTSTR)pMsg->lParam);
case WM_SYSCOLORCHANGE:
case WM_SETTINGCHANGE:
Invalidate();
//m_pParentDlg->SendMessage(m_nPaintMsg, 0, 0L);
return FALSE;
}
return FALSE;
}
示例3: switch
LRESULT WindowImplBase::HandleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam)
{
LRESULT lRes = 0;
BOOL bHandled = TRUE;
switch (uMsg)
{
case WM_CREATE: lRes = OnCreate(uMsg, wParam, lParam, bHandled); break;
case WM_CLOSE: lRes = OnClose(uMsg, wParam, lParam, bHandled); break;
case WM_DESTROY: lRes = OnDestroy(uMsg, wParam, lParam, bHandled); break;
#if defined(WIN32) && !defined(UNDER_CE)
case WM_NCACTIVATE: lRes = OnNcActivate(uMsg, wParam, lParam, bHandled); break;
case WM_NCCALCSIZE: lRes = OnNcCalcSize(uMsg, wParam, lParam, bHandled); break;
case WM_NCPAINT: lRes = OnNcPaint(uMsg, wParam, lParam, bHandled); break;
case WM_NCHITTEST: lRes = OnNcHitTest(uMsg, wParam, lParam, bHandled); break;
case WM_GETMINMAXINFO: lRes = OnGetMinMaxInfo(uMsg, wParam, lParam, bHandled); break;
case WM_MOUSEWHEEL: lRes = OnMouseWheel(uMsg, wParam, lParam, bHandled); break;
#endif
case WM_SIZE: lRes = OnSize(uMsg, wParam, lParam, bHandled); break;
case WM_SYSCOMMAND: lRes = OnSysCommand(uMsg, wParam, lParam, bHandled); break;
case WM_KEYDOWN: lRes = OnKeyDown(uMsg, wParam, lParam, bHandled); break;
case WM_KILLFOCUS: lRes = OnKillFocus(uMsg, wParam, lParam, bHandled); break;
case WM_SETFOCUS: lRes = OnSetFocus(uMsg, wParam, lParam, bHandled); break;
case WM_LBUTTONUP: lRes = OnLButtonUp(uMsg, wParam, lParam, bHandled); break;
case WM_LBUTTONDOWN: lRes = OnLButtonDown(uMsg, wParam, lParam, bHandled); break;
case WM_MOUSEMOVE: lRes = OnMouseMove(uMsg, wParam, lParam, bHandled); break;
default: bHandled = FALSE; break;
}
if (bHandled) return lRes;
lRes = HandleCustomMessage(uMsg, wParam, lParam, bHandled);
if (bHandled) return lRes;
if (paint_manager_.MessageHandler(uMsg, wParam, lParam, lRes)) return lRes;
return CWindowWnd::HandleMessage(uMsg, wParam, lParam);
}
示例4: switch
LRESULT CCharacterProcess::DefMainWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
switch ( uMsg )
{
case WM_LBUTTONDOWN:
OnLButtonDown(wParam, lParam);
break;
case WM_LBUTTONUP:
OnLButtonUp(wParam, lParam);
break;
case ID_SOCKCLIENT_EVENT_MSG:
g_xClientSocket.OnSocketMessage(wParam, lParam);
break;
case WM_KEYDOWN:
OnKeyDown(wParam, lParam);
break;
case WM_MOUSEON:
OnMouseOn(wParam,lParam);
break;
case WM_MOVE:
OnWindowMove(wParam,lParam);
break;
case WM_MOUSEMOVE:
OnMouseMove(wParam,lParam);
break;
default:
break;
}
return CWHDefProcess::DefMainWndProc(hWnd, uMsg, wParam, lParam);
}
示例5: switch
unsigned int CTargetMenu::Process(UINT uiMsg,WPARAM wParam,LPARAM lParam)
{
if(!IsVision()) return 0;
unsigned iProcID = 0;
if( iProcID = CTDialog::Process(uiMsg,wParam,lParam))
{
switch(uiMsg)
{
case WM_LBUTTONUP:
{
if( OnLButtonUp( iProcID ) )
return uiMsg;
break;
}
case WM_RBUTTONDOWN:
Hide();
break;
default:
break;
}
return uiMsg;
}
else
{
if( uiMsg == WM_RBUTTONDOWN )
{
Hide();
return uiMsg;
}
}
return 0;
}
示例6: switch
LRESULT CALLBACK HexGrid::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
switch(uMsg){
case WM_CREATE:
OnCreate(hWnd, uMsg, wParam, lParam);
break;
case WM_PAINT:
OnPaint(hWnd, uMsg, wParam, lParam);
break;
case WM_SETFONT:
OnSetFont(hWnd, uMsg, wParam, lParam);
break;
case WM_SIZE:
OnSize(hWnd, uMsg, wParam, lParam);
break;
case WM_LBUTTONDOWN:
OnLButtonDown(hWnd, uMsg, wParam, lParam);
break;
case WM_LBUTTONUP:
OnLButtonUp(hWnd, uMsg, wParam, lParam);
break;
case WM_MOUSEMOVE:
OnMouseMove(hWnd, uMsg, wParam, lParam);
break;
case WM_VSCROLL:
OnVScroll(hWnd, uMsg, wParam, lParam);
break;
default:
return DefWindowProc(hWnd, uMsg, wParam, lParam);
}
return 0;
}
示例7: switch
//--------------------------------------------------------------------------------------------
bool MouseHandlerBase::OnMsgProc( HWND i_hWnd, UINT i_nMsg, WPARAM i_wParam, LPARAM i_lParam )
{
bool ret = false;
// マウスに関係するメッセージをハンドリングする
switch( i_nMsg )
{
case WM_MOUSEMOVE:
ret = OnMouseMove(LOWORD(i_lParam), HIWORD(i_lParam));
break;
case WM_LBUTTONDOWN:
ret = OnLButtonDown(LOWORD(i_lParam), HIWORD(i_lParam));
break;
case WM_LBUTTONUP:
ret = OnLButtonUp(LOWORD(i_lParam), HIWORD(i_lParam));
break;
case WM_RBUTTONDOWN:
ret = OnRButtonDown(LOWORD(i_lParam), HIWORD(i_lParam));
break;
case WM_RBUTTONUP:
ret = OnRButtonUp(LOWORD(i_lParam), HIWORD(i_lParam));
break;
case WM_MOUSEWHEEL:
ret = OnMouseWheel( GET_WHEEL_DELTA_WPARAM(i_wParam) / WHEEL_DELTA );
break;
}
return ret;
}
示例8: switch
//ʵÏÖBaseWindowµÄ½Ó¿Ú
LRESULT CALLBACK CEqualizerWnd::WindowProc(HWND hwnd,UINT uMsg, WPARAM wParam,LPARAM lParam )
{
POINT point = {0};
switch (uMsg)
{
case WM_CREATE:
OnCreate(uMsg,wParam,lParam);
break;
case WM_PAINT:
OnPaint(uMsg,wParam,lParam);
break;
case WM_LBUTTONDOWN:
point.x = LOWORD(lParam);
point.y = HIWORD(lParam);
OnLButtonDown(point);
break;
case WM_LBUTTONUP:
point.x = LOWORD(lParam);
point.y = HIWORD(lParam);
OnLButtonUp(point);
break;
case WM_MOUSEMOVE:
point.x = LOWORD(lParam);
point.y = HIWORD(lParam);
OnMouseMove(point);
break;
case WM_DESTROY:
OnDestroy(uMsg,wParam,lParam);
break;
default:
return DefWindowProc(hwnd, uMsg, wParam, lParam);
}
return 0;
}
示例9: CanvasProc
// 캔버스 윈도우의 메시지 처리 함수
LRESULT CALLBACK CanvasProc(HWND hWnd,UINT iMessage,WPARAM wParam,LPARAM lParam)
{
switch(iMessage) {
case WM_CREATE:
return OnCreate(hWnd,wParam,lParam);
case WM_DESTROY:
return OnDestroy(hWnd,wParam,lParam);
case WM_PAINT:
return OnPaint(hWnd,wParam,lParam);
case WM_COMMAND:
return OnCommand(hWnd,wParam,lParam);
case WM_LBUTTONDOWN:
return OnLButtonDown(hWnd,wParam,lParam);
case WM_MOUSEMOVE:
return OnMouseMove(hWnd,wParam,lParam);
case WM_LBUTTONUP:
return OnLButtonUp(hWnd,wParam,lParam);
case WM_KEYDOWN:
return OnKeyDown(hWnd,wParam,lParam);
case WM_SETCURSOR:
return OnSetCursor(hWnd,wParam,lParam);
case WM_SIZE:
return OnSize(hWnd,wParam,lParam);
case WM_CONTEXTMENU:
return OnContextMenu(hWnd,wParam,lParam);
case WM_LBUTTONDBLCLK:
return OnLButtonDblclk(hWnd,wParam,lParam);
}
return(DefWindowProc(hWnd,iMessage,wParam,lParam));
}
示例10: WndProc
//窗口处理函数
LRESULT CALLBACK WndProc( HWND hWnd, UINT msg,
WPARAM wParam, LPARAM lParam )
{
switch( msg )
{
case WM_MOUSEWHEEL:
OnMouseWheel( hWnd, wParam );
break;
case WM_LBUTTONDBLCLK:
OnLButtonDblClk( hWnd );
break;
case WM_PAINT:
OnPaint( hWnd );
break;
case WM_MOUSEMOVE:
OnMouseMove( hWnd, lParam );
break;
case WM_LBUTTONDOWN:
OnLButtonDown( hWnd, wParam, lParam );
break;
case WM_LBUTTONUP:
OnLButtonUp( hWnd, wParam, lParam );
break;
case WM_DESTROY:
PostQuitMessage( 0 );
break;
}
return DefWindowProc( hWnd, msg, wParam, lParam );
}
示例11: Slider_WndProc
LRESULT CALLBACK Slider_WndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
Slider_Info * const pInfo = GetInfo(hwnd);
switch (uMsg)
{
case WM_CREATE:
return OnCreate(hwnd);
case WM_PAINT:
return OnPaint(hwnd, pInfo);
case WM_NCDESTROY:
return OnNcDestroy(hwnd, pInfo);
case WM_LBUTTONDOWN:
return OnLButtonDown(hwnd, GET_X_LPARAM(lParam), GET_Y_LPARAM(lParam), pInfo);
case WM_LBUTTONUP:
return OnLButtonUp(hwnd, GET_X_LPARAM(lParam), GET_Y_LPARAM(lParam), pInfo);
case WM_MOUSEMOVE:
return OnMouseMove(hwnd, GET_X_LPARAM(lParam), GET_Y_LPARAM(lParam), pInfo);
case WM_ENABLE:
if (wParam == FALSE) // Window is disabled. Stop tracking.
{
return OnReleaseSlider(hwnd, pInfo);
}
break;
case WM_CAPTURECHANGED:
// The window lost focus while the slider was tracking the mouse OR
// the slider released the mouse capture itself.
return OnReleaseSlider(hwnd, pInfo);
// Custom messages
case WM_SLIDER_SET_THUMB_BITMAP:
return OnSetThumbBitmap(hwnd, (WORD)wParam, pInfo);
case WM_SLIDER_SET_BACKGROUND:
return OnSetBackground(hwnd, (HBRUSH)wParam, pInfo);
case WM_SLIDER_SET_MIN_MAX:
return OnSetMinMax(hwnd, (LONG)wParam, (LONG)lParam, pInfo);
case WM_SLIDER_SET_POSITION:
return OnSetPosition(hwnd, (LONG)wParam, pInfo);
case WM_SLIDER_GET_POSITION:
return OnGetPosition(hwnd, pInfo);
default:
return DefWindowProc(hwnd, uMsg, wParam, lParam);
}
return 0;
};
示例12: OnLButtonUp
void CSkinButton::OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags)
{
// TODO: Add your message handler code here and/or call default
if ( nChar == VK_SPACE )
OnLButtonUp( 0, 0 );
//CButton::OnKeyUp(nChar, nRepCnt, nFlags);
}
示例13: switch
void CFWL_CheckBoxImpDelegate::OnProcessMessage(CFWL_Message* pMessage) {
if (!pMessage)
return;
switch (pMessage->GetClassID()) {
case CFWL_MessageType::Activate: {
OnActivate(pMessage);
break;
}
case CFWL_MessageType::SetFocus: {
OnFocusChanged(pMessage, TRUE);
break;
}
case CFWL_MessageType::KillFocus: {
OnFocusChanged(pMessage, FALSE);
break;
}
case CFWL_MessageType::Mouse: {
CFWL_MsgMouse* pMsg = static_cast<CFWL_MsgMouse*>(pMessage);
switch (pMsg->m_dwCmd) {
case FWL_MouseCommand::LeftButtonDown: {
OnLButtonDown(pMsg);
break;
}
case FWL_MouseCommand::LeftButtonUp: {
OnLButtonUp(pMsg);
break;
}
case FWL_MouseCommand::Move: {
OnMouseMove(pMsg);
break;
}
case FWL_MouseCommand::Leave: {
OnMouseLeave(pMsg);
break;
}
default:
break;
}
break;
}
case CFWL_MessageType::Key: {
CFWL_MsgKey* pKey = static_cast<CFWL_MsgKey*>(pMessage);
if (pKey->m_dwCmd == FWL_KeyCommand::KeyDown)
OnKeyDown(pKey);
break;
}
default: {
break;
}
}
CFWL_WidgetImpDelegate::OnProcessMessage(pMessage);
}
示例14: switch
int32_t CFWL_PushButtonImpDelegate::OnProcessMessage(CFWL_Message* pMessage) {
if (!pMessage)
return 0;
if (!m_pOwner->IsEnabled()) {
return 1;
}
int32_t iRet = 1;
FX_DWORD dwMsgCode = pMessage->GetClassID();
switch (dwMsgCode) {
case FWL_MSGHASH_SetFocus:
case FWL_MSGHASH_KillFocus: {
OnFocusChanged(pMessage, dwMsgCode == FWL_MSGHASH_SetFocus);
break;
}
case FWL_MSGHASH_Mouse: {
CFWL_MsgMouse* pMsg = static_cast<CFWL_MsgMouse*>(pMessage);
FX_DWORD dwCmd = pMsg->m_dwCmd;
switch (dwCmd) {
case FWL_MSGMOUSECMD_LButtonDown: {
OnLButtonDown(pMsg);
break;
}
case FWL_MSGMOUSECMD_LButtonUp: {
OnLButtonUp(pMsg);
break;
}
case FWL_MSGMOUSECMD_MouseMove: {
OnMouseMove(pMsg);
break;
}
case FWL_MSGMOUSECMD_MouseLeave: {
OnMouseLeave(pMsg);
break;
}
default: {}
}
break;
}
case FWL_MSGHASH_Key: {
CFWL_MsgKey* pKey = static_cast<CFWL_MsgKey*>(pMessage);
if (pKey->m_dwCmd == FWL_MSGKEYCMD_KeyDown) {
OnKeyDown(pKey);
}
break;
}
default: {
iRet = 0;
break;
}
}
CFWL_WidgetImpDelegate::OnProcessMessage(pMessage);
return iRet;
}
示例15: switch
LRESULT CHyperlink::WndProc(UINT uMsg, WPARAM wParam, LPARAM lParam)
{
switch (uMsg)
{
case WM_LBUTTONDOWN: OnLButtonDown(); break;
case WM_LBUTTONUP: OnLButtonUp(lParam); break;
case WM_SETCURSOR: return OnSetCursor();
case WM_NCHITTEST: return HTCLIENT; // Claim that the mouse is in a client area
}
return WndProcDefault(uMsg, wParam, lParam);
}