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

Method OnClick

RedisStudio/MainFrameWhd.cpp:192–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190
191
192void CMainFrameWnd::OnClick( TNotifyUI& msg )
193{
194 if( msg.pSender == m_pCloseBtn )
195 {
196 PostQuitMessage(0);
197 return;
198 }
199 else if( msg.pSender == m_pMinBtn )
200 {
201 SendMessage(WM_SYSCOMMAND, SC_MINIMIZE, 0);
202 return;
203 }
204 else if( msg.pSender == m_pMaxBtn )
205 {
206 SendMessage(WM_SYSCOMMAND, SC_MAXIMIZE, 0);
207 return;
208 }
209 else if( msg.pSender == m_pRestoreBtn )
210 {
211 SendMessage(WM_SYSCOMMAND, SC_RESTORE, 0);
212 return;
213 }
214 else if (msg.pSender->GetName() == _T("Issue"))
215 {
216 ::ShellExecute(NULL, NULL, _T("https://github.com/cinience/RedisStudio/issues"), NULL, NULL, NULL);
217 }
218 else if (msg.pSender->GetName() == _T("Star"))
219 {
220 ::ShellExecute(NULL, NULL, _T("https://github.com/cinience/RedisStudio/stargazers"), NULL, NULL, NULL);
221 }
222}
223
224void CMainFrameWnd::OnSelectChanged( TNotifyUI &msg )
225{

Callers

nothing calls this directly

Calls 1

GetNameMethod · 0.45

Tested by

no test coverage detected