Windows CE & Pocket PC

Moderators: None (Apply to moderate this forum)
Number of threads: 324
Number of posts: 425

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Flip Screen Programmatically in Windows CE? Posted by dbx_unit on 14 May 2003 at 8:03 AM
I'm currently working with eVB on a Windows CE platform to be used on NEC 790 machines. These machines have a feature in which the screen can be flipped with a hotkey to make life easier when capturing signatures at face to face meetings. I'm investigating options in which the screen can be flipped programmatically through eVB rather than using the hotkey, but am having no luck. Can anyone help?

Thanks,
dbx
Report
Re: Flip Screen Programmatically in Windows CE? Posted by mossoft on 15 May 2003 at 6:35 AM
I have heard that, on some devices you can do it with a small registry hack. Look for a registry key: "HKLM\Drivers\Display\MQ200" and change the value of "Rotate" from 0 to 1.
Haven't seen it work yet!!

HTH

M
Report
Re: Flip Screen Programmatically in Windows CE? Posted by dbx_unit on 15 May 2003 at 1:30 PM
Thanks for the reply. I haven't tried the registry hack, but I was lucky enough to hear back from NEC directly on how to do this. It turns out that there's an .exe in the windows directory on NEC 790 machines (and probably other devices) called "rttimg.exe" that you can run from code to flip the screen.
This is what was done:

Public Declare Function CreateProcess Lib "Coredll" Alias "CreateProcessW"
(ByVal lpApplicationName As String, ByVal lpCommandLine As String, ByVal
lpProcessAttributes As Long, ByVal lpThreadAttribute As Long, ByVal
bInheritHandles As Long, ByVal dwCreationFlags As Long, ByVal lpEnvironment
As Long, ByVal lpCurrentDirectory As Long, ByVal lpStatupInfo As Long, ByVal
lpProcessInformation As Long) As Boolean

And the event code:

Private Sub CmdFlip_Click()
Dim retval As Boolean
retval = CreateProcess("\Windows\rttimg.exe", "", 0, 0, 0, 0, 0, 0, 0, 0)
If Not retval Then
MsgBox "This function will only work on a NEC MobilePro CE Unit.",
vbCritical, "Error flipping screen!"
End If
End Sub

Hope this helps somebody.



: I have heard that, on some devices you can do it with a small registry hack. Look for a registry key: "HKLM\Drivers\Display\MQ200" and change the value of "Rotate" from 0 to 1.
: Haven't seen it work yet!!
:
: HTH
:
: M
:




 

Recent Jobs