本文整理汇总了C++中OnOK函数的典型用法代码示例。如果您正苦于以下问题:C++ OnOK函数的具体用法?C++ OnOK怎么用?C++ OnOK使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了OnOK函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: OnOK
void CDlgBundleTimeList::OnNMDblclkListBundletime(NMHDR *pNMHDR, LRESULT *pResult)
{
OnOK();
*pResult = 0;
}
开发者ID:layerfsd,项目名称:PersonalIBA,代码行数:6,代码来源:BundleTimeListDlg.cpp
示例2: UINT
void CMediaStorageDlg::OnBnClickedOk()
{
m_uAFF = UINT(m_wndAFF.GetItemData(m_wndAFF.GetCurSel()));
OnOK();
}
开发者ID:BearWare,项目名称:TeamTalk5,代码行数:5,代码来源:MediaStorageDlg.cpp
示例3: handled
bool CGUIDialogKeyboardGeneric::OnAction(const CAction &action)
{
bool handled(true);
if (action.GetID() == ACTION_BACKSPACE)
{
Backspace();
}
else if (action.GetID() == ACTION_ENTER)
{
OnOK();
}
else if (action.GetID() == ACTION_CURSOR_LEFT)
{
MoveCursor( -1);
}
else if (action.GetID() == ACTION_CURSOR_RIGHT)
{
if (m_strEditing.empty() && (unsigned int) GetCursorPos() == m_strEdit.size() && (m_strEdit.size() == 0 || m_strEdit[m_strEdit.size() - 1] != ' '))
{ // add a space
Character(L' ');
}
else
MoveCursor(1);
}
else if (action.GetID() == ACTION_SHIFT)
{
OnShift();
}
else if (action.GetID() == ACTION_SYMBOLS)
{
OnSymbols();
}
else if (action.GetID() >= REMOTE_0 && action.GetID() <= REMOTE_9)
{
OnRemoteNumberClick(action.GetID());
}
else if (action.GetID() == ACTION_PASTE)
{
OnPasteClipboard();
}
else if ( (action.GetID() >= KEY_VKEY && action.GetID() < KEY_ASCII) ||
(action.GetButtonCode() >= KEY_VKEY && action.GetButtonCode() < KEY_ASCII) )
{ // input from the keyboard (vkey, not ascii)
if (!m_strEditing.empty())
return handled;
uint8_t b = action.GetButtonCode() ? action.GetButtonCode() & 0xFF : action.GetID() & 0xFF;
switch (b)
{
case XBMCVK_HOME:
SetCursorPos(0);
break;
case XBMCVK_END:
SetCursorPos(m_strEdit.size());
break;
case XBMCVK_LEFT:
MoveCursor( -1);
break;
case XBMCVK_RIGHT:
MoveCursor(1);
break;
case XBMCVK_RETURN:
case XBMCVK_NUMPADENTER:
OnOK();
break;
case XBMCVK_DELETE:
if (GetCursorPos() < (int)m_strEdit.size())
{
MoveCursor(1);
Backspace();
}
break;
case XBMCVK_BACK:
Backspace();
break;
case XBMCVK_ESCAPE:
Close();
break;
case XBMCVK_LSHIFT:
case XBMCVK_RSHIFT:
OnShift();
break;
case XBMCVK_CAPSLOCK:
OnCapsLock();
break;
}
}
else if (action.GetID() >= KEY_ASCII)
{ // input from the keyboard
//char ch = action.GetID() & 0xFF;
int ch = action.GetUnicode();
if( m_keyType == LOWER && m_bShift )
{
if (ch >= 'a' && ch <= 'z')
ch -= 32;
OnShift();
}
else if( m_keyType == CAPS && !m_bShift )
//.........这里部分代码省略.........
开发者ID:lewy20041,项目名称:xbmclibmedia,代码行数:101,代码来源:GUIDialogKeyboardGeneric.cpp
示例4: OnOK
void CSelectReaderDlg::OnDblClkTreeDevices(NMHDR* pNMHDR, LRESULT* pResult)
{
*pResult = 0;
OnOK();
}
开发者ID:ssidko,项目名称:WorkProjects,代码行数:5,代码来源:SelectReaderDlg.cpp
示例5: OnOK
void CTextCommentSettings::OnBnClickedOk()
{
// TODO: Add your control notification handler code here
OnOK();
//CloseWindow();
}
开发者ID:0anion0,项目名称:IBN,代码行数:6,代码来源:TextCommentSettings.cpp
示例6: OnOK
void AmbloneHotkeys::OnBnClickedOk()
{
Parent->HotkeyWinClose();
OnOK();
}
开发者ID:Haven-Lau,项目名称:Amblone-reference,代码行数:5,代码来源:AmbloneHotkeys.cpp
示例7: OnOK
void CSearchDlg::OnBnClickedCancel()
{
// TODO: 在此添加控件通知处理程序代码
OnOK();
}
开发者ID:Karn123,项目名称:PicManager,代码行数:5,代码来源:SearchDlg.cpp
示例8: OnOK
HRESULT CDHtmlTest::OnButtonOK(IHTMLElement* /*pElement*/)
{
OnOK();
return S_OK;
}
开发者ID:panyibin,项目名称:Experiment,代码行数:5,代码来源:DHtmlTest.cpp
示例9: OnOK
void HistoryDlg::OnNMDblclkTree(NMHDR *pNMHDR, LRESULT *pResult)
{
*pResult = 0;
OnOK();
}
开发者ID:fxfile,项目名称:fxfile,代码行数:6,代码来源:history_dlg.cpp
示例10: switch
//.........这里部分代码省略.........
case 2:
g_options.m_numSamples = 8;
break;
case 3:
g_options.m_numSamples = 16;
break;
}
}
else
g_options.m_numSamples = 0;
}
//Anisotropy
if( GLEW_EXT_texture_filter_anisotropic )
{
checkState = m_checkBoxAnisotropy.GetCheck();
if( checkState == BST_CHECKED )
{
CInt curSel = m_comboAnisotropy.GetCurSel();
switch( curSel )
{
case 0:
g_options.m_anisotropy = 2;
break;
case 1:
g_options.m_anisotropy = 4;
break;
case 2:
g_options.m_anisotropy = 8;
break;
case 3:
g_options.m_anisotropy = 16;
break;
}
}
else
g_options.m_anisotropy = 0;
}
//VSync
if( WGLEW_EXT_swap_control )
{
checkState = m_checkBoxVSync.GetCheck();
if( checkState == BST_CHECKED )
{
g_options.m_disableVSync = CTrue;
wglSwapIntervalEXT(0);
}
else
{
g_options.m_disableVSync = CFalse;
wglSwapIntervalEXT(1);
}
}
//FBO
if( g_render.UsingFBOs() )
{
checkState = m_checkBoxFBO.GetCheck();
if( checkState == BST_CHECKED )
{
g_options.m_enableFBO = CTrue;
}
else
{
g_options.m_enableFBO = CFalse;
}
}
//VBO
if( g_render.UsingVBOs() )
{
checkState = m_checkBoxVBO.GetCheck();
if( checkState == BST_CHECKED )
{
g_options.m_enableVBO = CTrue;
}
else
{
g_options.m_enableVBO = CFalse;
}
}
//welcome dialog
checkState = m_checkBoxWelcomeDialog.GetCheck();
if( checkState == BST_CHECKED )
g_options.m_showStartupDialog = CTrue;
else
g_options.m_showStartupDialog = CFalse;
//water
if( g_render.m_useWaterReflection )
{
checkState = m_checkBoxWaterReflection.GetCheck();
if( checkState == BST_CHECKED )
g_options.m_enableWaterReflection = CTrue;
else
g_options.m_enableWaterReflection = CFalse;
}
OnOK();
}
开发者ID:dig3nius,项目名称:Vanda-Engine,代码行数:101,代码来源:EditOptions.cpp
示例11: OnOK
void CSkeletonSetDlg::OnBnClickedOk()
{
// TODO: Add your control notification handler code here
OnOK();
}
开发者ID:YOlodfssdf,项目名称:evolution3d,代码行数:5,代码来源:SkeletonSetDlg.cpp
示例12: AfxMessageBox
BOOL CProSetCameraTab::OnBnClickedOk()
{
if (m_pConfigCenter->GetImgSource()!=CAMERA_SOURCE)
return TRUE;
if (m_ComboSource.GetCount()==0)
{
CString msg;
msg.Format(_T("Cannot find Camera %s. please rescan"),(s2ws(m_pConfigCenter->GetCameraName())).c_str());
AfxMessageBox(msg);
return FALSE;
}
CString name;
m_ComboSource.GetLBText(m_ComboSource.GetCurSel(),name);
wstring wname = name;
m_pConfigCenter->SetCameraName(ws2s(wname));
m_pConfigCenter->SetImgSource(CAMERA_SOURCE);
bool bChecked = (m_TriggerMode.GetCheck()==BST_CHECKED);
m_pConfigCenter->SetTriggerMode(bChecked);
if(bChecked)
{
if (m_TraggerEdge.GetCurSel() == 0)
{
m_pConfigCenter->SetTriggerEdge(RISING_EDGE);
}
else
{
m_pConfigCenter->SetTriggerEdge(FALLING_EDGE);
}
}
USES_CONVERSION;
CString strValue;
m_CameraGain.GetWindowText(strValue);
m_pConfigCenter->SetCameraGain(_ttoi(T2CW(strValue)));
m_triggerDelayAbs.GetWindowText(strValue);
m_pConfigCenter->SetTriggerDelayAbs(_ttoi(T2CW(strValue)));
#ifdef SHEET_INSPECTION
m_linePerFrame.GetWindowText(strValue);
m_pConfigCenter->SetLineCountPerFrame(_ttoi(T2CW(strValue)));
m_framePerSheet.GetWindowText(strValue);
m_pConfigCenter->SetFrameCountPerSheet(_ttoi(T2CW(strValue)));
#endif
// Connect to Light Controller and update the intensity value
bChecked = (m_bConnectLightCtrl.GetCheck() == BST_CHECKED);
m_pConfigCenter->SetConnect2LightCtrlFlag(bChecked);
if(bChecked)
{
if(CMCtrlCenter::GetSingletonCtrlCenter()->m_VLproxy.TryConnectToUSB())
{
CMCtrlCenter::GetSingletonCtrlCenter()->m_VLproxy.WriteLightParam2Controller();
}
}
OnOK();
return TRUE;
}
开发者ID:bblr001,项目名称:MVS,代码行数:63,代码来源:ProSetCameraTab.cpp
示例13: switch
BOOL CWndGHUpkeep::OnChildNotify( UINT message, UINT nID, LRESULT* pLResult )
{
int nBuyNum = 0;
switch( nID )
{
case WIDC_PLUS:
nBuyNum = atoi(m_pEdit->GetString());
++nBuyNum;
if ( nBuyNum > MAX_UPKEEP_DAY_CLIENT )
nBuyNum = MAX_UPKEEP_DAY_CLIENT;
OnChangeBuyCount(nBuyNum);
break;
case WIDC_MINUS:
nBuyNum = atoi(m_pEdit->GetString());
if ( --nBuyNum < 1 )
nBuyNum = 1;
OnChangeBuyCount(nBuyNum);
break;
case WIDC_MAX:
OnChangeBuyCount( MAX_UPKEEP_DAY_CLIENT );
break;
case WIDC_CONTROL2:
if( EN_CHANGE == message )
{
if( m_pEdit == NULL )
{
ADDERRORMSG( "CWndConfirmBuy::OnChildNotify : m_pEdit == NULL" );
char szMsg[256];
sprintf( szMsg, "CWndConfirmBuy::OnChildNotify : more info(%d, %d)", pLResult, GetDlgItem( WIDC_CONTROL2 ) );
ADDERRORMSG( szMsg );
nBuyNum = 1;
}
else
nBuyNum = atoi(m_pEdit->GetString());
nBuyNum = max( nBuyNum, 0 );
DWORD dwMAXCount = MAX_BUY_UPKEEP;
nBuyNum = min( nBuyNum, (int)( dwMAXCount ) );
OnChangeBuyCount(nBuyNum);
}
break;
case WIDC_CANCEL:
Destroy();
break;
case WIDC_OK:
OnOK();
Destroy();
break;
}
return CWndNeuz::OnChildNotify( message, nID, pLResult );
}
开发者ID:iceberry,项目名称:flyffsf,代码行数:64,代码来源:WndGuildHouse.cpp
示例14: GetDlgItem
void CDlgObservaciones::OnBnClickedOk()
{
GetDlgItem(IDC_OBSERVACIONES)->GetWindowText(m_strObs);
OnOK();
}
开发者ID:jlouzao,项目名称:Minerva,代码行数:6,代码来源:DlgObservaciones.cpp
示例15: OnOK
void CDirectionDlg::OnButtonW() {
m_dir = W;
OnOK();
}
开发者ID:JesperMikkelsen,项目名称:Big-Numbers,代码行数:4,代码来源:DirectionDlg.cpp
示例16: OnOK
void CInsertControlDlg::OnControlsDblClk()
{
OnOK();
}
开发者ID:Jinjiego,项目名称:VCSamples,代码行数:4,代码来源:InsCtlDg.Cpp
示例17: OnOK
void CMProfileDlg::OnBnClickedOk()
{
int cur = m_plist.GetCurSel();
m_plist.GetLBText(cur , m_profile_add);
OnOK();
}
开发者ID:william0wang,项目名称:meditor,代码行数:6,代码来源:MProfileDlg.cpp
示例18: OnOK
void CHttpOption::OnBnClickedOk()
{
// TODO: 在此添加控件通知处理程序代码
OnOK();
}
开发者ID:10jschen,项目名称:acl,代码行数:5,代码来源:HttpOption.cpp
示例19: OnOK
void CDialogTextures::OnDblclkListTextures()
{
OnOK();
}
开发者ID:FS-NulL,项目名称:Q3Radiant,代码行数:4,代码来源:dialogtextures.cpp
示例20: OnOK
HRESULT HtmlDlg::OnButtonOK(IHTMLElement* /*pElement*/)
{
OnOK();
return S_OK;
}
开发者ID:lvshuchengyin,项目名称:mycode,代码行数:5,代码来源:HtmlDlg.cpp
注:本文中的OnOK函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论