Click here to Skip to main content
14,771,494 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
GeneralPowering down Win98 system Pin
Still learning how to code30-Jan-05 12:05
MemberStill learning how to code30-Jan-05 12:05 
GeneralRe: Powering down Win98 system Pin
PJ Arends30-Jan-05 12:32
professionalPJ Arends30-Jan-05 12:32 
GeneralRe: Powering down Win98 system Pin
Still learning how to code31-Jan-05 9:29
MemberStill learning how to code31-Jan-05 9:29 
GeneralRe: Powering down Win98 system Pin
PJ Arends31-Jan-05 10:21
professionalPJ Arends31-Jan-05 10:21 
GeneralRe: Powering down Win98 system Pin
Still learning how to code31-Jan-05 11:31
MemberStill learning how to code31-Jan-05 11:31 
GeneralRe: Powering down Win98 system Pin
PJ Arends31-Jan-05 11:45
professionalPJ Arends31-Jan-05 11:45 
GeneralRe: Powering down Win98 system Pin
Still learning how to code31-Jan-05 12:31
MemberStill learning how to code31-Jan-05 12:31 
GeneralCalling th OSK (ON-Screen Keyboard) Pin
Alex Evans30-Jan-05 10:43
MemberAlex Evans30-Jan-05 10:43 
Hello

I am trying to use the built-in OSK (On-Screen Keyboard) that comes bundled with W2K and Win-XP. I need this inside a STATIC control in my dialog based app.

So, I use

ShellExecute(AfxGetMainWnd()->m_hWnd,_T("open"),_T("osk.exe"), NULL, NULL, SW_SHOWMINIMIZED );

And do a bit of gymnastics to resize it into the static, remove the menu and the caption through using the following:

CMenu* pMenu = cOsk->GetMenu();
if(pMenu) // We don't want the users to 'Play' with any of the functions
{ pMenu->DeleteMenu(3,MF_BYPOSITION);
pMenu->DeleteMenu(2,MF_BYPOSITION);
pMenu->DeleteMenu(1,MF_BYPOSITION);
pMenu->DeleteMenu(0,MF_BYPOSITION);
}

cOsk->ModifyStyle(WS_CAPTION | WS_THICKFRAME ,WS_POPUP, SWP_NOSIZE );
cOsk->DrawMenuBar();

It all works fine as intended, but the initial load of the OSK flickers at the default place on screen, and only after that gets moved through ha call to MoveWindow() to where I need it

If anyone has any idea on how to load the OSK in a “Silent” mode, so that I can do what I want and only then show it to the user – please tell..


Cheers
Alex

GeneralAlgorithm and necessary code Pin
joy00730-Jan-05 6:57
Memberjoy00730-Jan-05 6:57 
QuestionHow to Enable at runtime Pin
joy00730-Jan-05 6:40
Memberjoy00730-Jan-05 6:40 
AnswerRe: How to Enable at runtime Pin
Bob Ciora30-Jan-05 7:15
MemberBob Ciora30-Jan-05 7:15 
AnswerRe: How to Enable at runtime Pin
Ravi Bhavnani30-Jan-05 7:17
professionalRavi Bhavnani30-Jan-05 7:17 
GeneralCArray can't add Pin
jw8130-Jan-05 6:31
Memberjw8130-Jan-05 6:31 
GeneralRe: CArray can't add Pin
Bob Ciora30-Jan-05 7:09
MemberBob Ciora30-Jan-05 7:09 
GeneralRe: CArray can't add Pin
jw8130-Jan-05 7:50
Memberjw8130-Jan-05 7:50 
GeneralRe: CArray can't add Pin
Bob Ciora30-Jan-05 7:54
MemberBob Ciora30-Jan-05 7:54 
GeneralRe: CArray can't add Pin
jw8130-Jan-05 7:57
Memberjw8130-Jan-05 7:57 
GeneralRe: CArray can't add Pin
Bob Ciora30-Jan-05 8:02
MemberBob Ciora30-Jan-05 8:02 
GeneralRe: CArray can't add Pin
jw8130-Jan-05 20:03
Memberjw8130-Jan-05 20:03 
Questionwhy a COM can not be deleted? Pin
includeh1030-Jan-05 6:15
Memberincludeh1030-Jan-05 6:15 
AnswerRe: why a COM can not be deleted? Pin
Bob Ciora30-Jan-05 7:52
MemberBob Ciora30-Jan-05 7:52 
GeneralRe: why a COM can not be deleted? Pin
includeh1030-Jan-05 11:28
Memberincludeh1030-Jan-05 11:28 
GeneralRe: why a COM can not be deleted? Pin
geo_m30-Jan-05 20:39
Membergeo_m30-Jan-05 20:39 
GeneralTrouble with for(;;) Pin
ghostpirate730-Jan-05 4:20
Memberghostpirate730-Jan-05 4:20 
GeneralRe: Trouble with for(;;) Pin
Bob Ciora30-Jan-05 7:00
MemberBob Ciora30-Jan-05 7:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.