MCPcopy Create free account
hub / github.com/cinience/RedisStudio / OnClick

Method OnClick

DuiLib/Utils/WinImplBase.cpp:426–450  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

424}
425
426void WindowImplBase::OnClick(TNotifyUI& msg)
427{
428 CDuiString sCtrlName = msg.pSender->GetName();
429 if( sCtrlName == _T("closebtn") )
430 {
431 Close();
432 return;
433 }
434 else if( sCtrlName == _T("minbtn"))
435 {
436 SendMessage(WM_SYSCOMMAND, SC_MINIMIZE, 0);
437 return;
438 }
439 else if( sCtrlName == _T("maxbtn"))
440 {
441 SendMessage(WM_SYSCOMMAND, SC_MAXIMIZE, 0);
442 return;
443 }
444 else if( sCtrlName == _T("restorebtn"))
445 {
446 SendMessage(WM_SYSCOMMAND, SC_RESTORE, 0);
447 return;
448 }
449 return;
450}
451
452void WindowImplBase::Notify(TNotifyUI& msg)
453{

Callers

nothing calls this directly

Calls 1

GetNameMethod · 0.45

Tested by

no test coverage detected