Click here to Skip to main content
15,891,473 members
Home / Discussions / Mobile
   

Mobile

 
GeneralRunning a Compact Framework App on a desktop PC Pin
Nigel Savidge12-Dec-03 5:08
Nigel Savidge12-Dec-03 5:08 
GeneralRe: Running a Compact Framework App on a desktop PC Pin
CJCraft.com13-Feb-04 9:46
CJCraft.com13-Feb-04 9:46 
GeneralScrolling dialog in CE Pin
#realJSOP12-Dec-03 3:25
mve#realJSOP12-Dec-03 3:25 
GeneralRe: Scrolling dialog in CE Pin
João Paulo Figueira12-Dec-03 3:44
professionalJoão Paulo Figueira12-Dec-03 3:44 
GeneralRe: Scrolling dialog in CE Pin
#realJSOP12-Dec-03 6:23
mve#realJSOP12-Dec-03 6:23 
GeneralRe: Scrolling dialog in CE Pin
João Paulo Figueira12-Dec-03 7:17
professionalJoão Paulo Figueira12-Dec-03 7:17 
GeneralRe: Scrolling dialog in CE (edited) Pin
João Paulo Figueira12-Dec-03 7:32
professionalJoão Paulo Figueira12-Dec-03 7:32 
GeneralRe: Scrolling dialog in CE (edited) Pin
#realJSOP12-Dec-03 7:53
mve#realJSOP12-Dec-03 7:53 
This is the code I came up with to setup the scrollbar in OnInitDialog():

GetClientRect(&m_DlgClientRect);
m_ctrlScrollBar.Create(SBS_VERT | WS_VISIBLE | WS_CHILD | WS_CLIPSIBLINGS, CRect(0, 0, 10, 188), this, 12345);
m_ctrlScrollBar.GetWindowRect(&m_ScrollBarRect);
m_ctrlScrollBar.MoveWindow(m_DlgClientRect.Width()-m_ScrollBarRect.Width(),0, m_ScrollBarRect.Width(), m_ScrollBarRect.Height());
m_ctrlScrollBar.BringWindowToTop();
m_ctrlScrollBar.ShowScrollBar();

m_ctrlScrollBar.GetWindowRect(&m_ScrollBarRect);
 m_nScrollPos = 0;
 m_nCurHeight = m_ScrollBarRect.Height();
 SCROLLINFO si;
 si.cbSize = sizeof(SCROLLINFO);
 si.fMask  = SIF_ALL;
 si.nMin   = 0;
 si.nMax   = m_DlgClientRect.Height();
 si.nPage  = (int)(m_DlgClientRect.Height() * 0.7);
 si.nPos   = 0;
m_ctrlScrollBar.SetScrollInfo(&si, TRUE);



I know - it's not pretty, but it works... Smile | :)

The code above sets up the scrollbar so that it's initially visible for testing purposes. The rect size used in the Create() call is based on the size of the keyboard SIP.



------- signature starts

"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

"You won't like me when I'm angry..." - Dr. Bruce Banner

Please review the Legal Disclaimer in my bio.

------- signature ends
GeneralRe: Scrolling dialog in CE (edited) Pin
João Paulo Figueira12-Dec-03 8:16
professionalJoão Paulo Figueira12-Dec-03 8:16 
GeneralRe: Scrolling dialog in CE (edited) Pin
#realJSOP12-Dec-03 9:05
mve#realJSOP12-Dec-03 9:05 
GeneralRe: Scrolling dialog in CE (edited) Pin
#realJSOP12-Dec-03 8:05
mve#realJSOP12-Dec-03 8:05 
GeneralProblems with GROUP BY clause... Pin
nigs_krec12-Dec-03 0:28
nigs_krec12-Dec-03 0:28 
GeneralRe: Problems with GROUP BY clause... Pin
João Paulo Figueira12-Dec-03 3:50
professionalJoão Paulo Figueira12-Dec-03 3:50 
GeneralHelp Please!!! Pin
Rassul Yunussov10-Dec-03 22:31
Rassul Yunussov10-Dec-03 22:31 
GeneralRe: Help Please!!! Pin
Anonymous25-Dec-03 18:54
Anonymous25-Dec-03 18:54 
GeneralRe: Help Please!!! Pin
Rassul Yunussov31-Dec-03 19:00
Rassul Yunussov31-Dec-03 19:00 
GeneralPocket PC Emulator again Pin
BlackRider10-Dec-03 19:05
BlackRider10-Dec-03 19:05 
GeneralRe: Pocket PC Emulator again Pin
BlackRider10-Dec-03 23:31
BlackRider10-Dec-03 23:31 
Generalembed richink control in MFC CDialog Pin
ppp00110-Dec-03 16:08
ppp00110-Dec-03 16:08 
GeneralConect to service Pin
gadgetfbi10-Dec-03 14:54
gadgetfbi10-Dec-03 14:54 
GeneralCCeSocket Problem Pin
cbusgut8-Dec-03 23:53
cbusgut8-Dec-03 23:53 
GeneralCreateToolhelp32Snapshot is unresolved Pin
GDavy8-Dec-03 22:20
GDavy8-Dec-03 22:20 
GeneralRe: CreateToolhelp32Snapshot is unresolved Pin
GDavy8-Dec-03 22:33
GDavy8-Dec-03 22:33 
Generalprocess memory Pin
GDavy8-Dec-03 21:05
GDavy8-Dec-03 21:05 
GeneralCE Software Protect Pin
Mesut Gencer8-Dec-03 3:55
Mesut Gencer8-Dec-03 3:55 

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.