~baratosha23/stellarium/stellarium

« back to all changes in this revision

Viewing changes to src/gui/StelDialog.cpp

  • Committer: Vladislav Bataron
  • Date: 2014-10-07 08:13:09 UTC
  • Revision ID: baratosha23@gmail.com-20141007081309-10vo6fom82zmkmrn
Showing the touch keyboard on the device only with windows 8

Show diffs side-by-side

added added

removed removed

Lines of Context:
183
183
        if (StelApp::getInstance().getSettings()->value("gui/flag_enable_touch_keyboard", false).toBool() == false)
184
184
                return;
185
185
 
186
 
        if (show)
187
 
        {
188
 
                ShellExecuteA(NULL, "open", "\"C:\\Program Files\\Common Files\\microsoft shared\\ink\\TabTip.exe\"", "", 0, SW_NORMAL);
189
 
        }
190
 
        else
191
 
        {
192
 
                HWND wKB = ::FindWindow(_TEXT("IPTip_Main_Window"), NULL);
193
 
                if (wKB != NULL && ::IsWindowVisible(wKB))
194
 
                {
195
 
                        ::PostMessage(wKB, WM_SYSCOMMAND, SC_CLOSE, 0);
 
186
        switch (QSysInfo::WindowsVersion){
 
187
        case QSysInfo::WV_6_3:
 
188
        case QSysInfo::WV_6_2:
 
189
        {
 
190
                if (show)
 
191
            {
 
192
                    ShellExecuteA(NULL, "open", "\"C:\\Program Files\\Common Files\\microsoft shared\\ink\\TabTip.exe\"", "", 0, SW_NORMAL);
196
193
                }
 
194
                else
 
195
                {
 
196
                        HWND wKB = ::FindWindow(_TEXT("IPTip_Main_Window"), NULL);
 
197
                        if (wKB != NULL && ::IsWindowVisible(wKB))
 
198
                        {
 
199
                                ::PostMessage(wKB, WM_SYSCOMMAND, SC_CLOSE, 0);
 
200
                        }
 
201
                }
 
202
                break;
 
203
        }
 
204
        default: return;
197
205
        }
198
206
}
199
207
#endif
 
 
b'\\ No newline at end of file'