C++ (Qt)#include <QtGui> #include <windows.h> class W : public QWidget{public: W() : QWidget() { m_kl = LoadKeyboardLayout(TEXT("00000409"), 0); } private: HKL m_kl;}; int main(int argc, char *argv[]){ QApplication app(argc, argv); qint64 v = QDateTime::currentMSecsSinceEpoch(); W *w = new W; w->show(); qDebug("Initialized in %ld ms.", static_cast<long int>(QDateTime::currentMSecsSinceEpoch() - v)); return app.exec();}
C++ (Qt)SendMessage(hwnd, WM_INPUTLANGCHANGEREQUEST, INPUTLANGCHANGE_SYSCHARSET, 0x04090409);