Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

When running in landscape mode under Windows Mobile 2003 Second Edition, all of my dialogs have scroll bars even though they don have controls positioned below the bottom of the screen. Why?

0
Posted

When running in landscape mode under Windows Mobile 2003 Second Edition, all of my dialogs have scroll bars even though they don have controls positioned below the bottom of the screen. Why?

0

Scroll bars appear even though the dialogs don’t have controls positioned below the bottom of the screen because a change in behavior under Windows Mobile 2003 Second Edition causes unneeded scroll bars to appear. Because the automatic scrollbar feature does not occur if a tab control is on the dialog at all, a workaround would be to create a tab control (class SysTabControl32), place it off the screen area (using negative coordinates), and turn off its WS_VISIBLE property. This workaround ensures that a vertical scrollbar will never be automatically introduced when the device switches to landscape.

Related Questions

Thanksgiving questions

*Sadly, we had to bring back ads too. Hopefully more targeted.