Hello,

Is there any method through which we can disable the scrollbar for the
landscape mode in pocket pc for any windows mobile application.

My application has its own scrollbar and scrolling methods. How can i
override the default behavior?

Thanks
Nupur

RE: Disabling scrollbar in pocket pc (landscape mode) by dbgrick

dbgrick
Tue Oct 09 07:36:03 PDT 2007

Call GetWindowLong for the window. This will return the window configuration
settings. You can then binary & the ~WS_VSCROLL value with the result and
call SetWindowLong. This will hide the scroll bar. To show it again, do the
same, but or the WS_VSCROLL value.

Regards,
Rick D.
Contractor

"Nupur" wrote:

> Hello,
>
> Is there any method through which we can disable the scrollbar for the
> landscape mode in pocket pc for any windows mobile application.
>
> My application has its own scrollbar and scrolling methods. How can i
> override the default behavior?
>
> Thanks
> Nupur

Re: Disabling scrollbar in pocket pc (landscape mode) by r_z_aret

r_z_aret
Tue Oct 09 11:31:57 PDT 2007

On Mon, 8 Oct 2007 07:57:00 -0700, Nupur
<Nupur@discussions.microsoft.com> wrote:

>Hello,
>
>Is there any method through which we can disable the scrollbar for the
>landscape mode in pocket pc for any windows mobile application.
>
>My application has its own scrollbar and scrolling methods. How can i
>override the default behavior?

I add an invisible tab control. Here are the relevant comments in my
code:

// Add invisible tab control to suppress vertical scroll bar in
landscape mode
// See "Windows Mobile Platform Migration FAQ for Developers"
//
http://msdn.microsoft.com/mobility/windowsmobile/default.aspx?pull=/library/en-us/dnppcgen/html/migration_developers_faq.asp
// Section with questions about Display

Unfortunately, the link is no longer valid (!!!@#@). I did make a few
attempts to find a new link for the same info, but failed. And I
confess to being a bit lazy.


>
>Thanks
>Nupur

-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).

Robert E. Zaret, eMVP
PenFact, Inc.
20 Park Plaza, Suite 478
Boston, MA 02116
www.penfact.com