| 190 | |
| 191 | |
| 192 | void 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 | |
| 224 | void CMainFrameWnd::OnSelectChanged( TNotifyUI &msg ) |
| 225 | { |