Click here to Skip to main content
16,011,475 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Activex on visual c++ 6 Pin
VinZ13-Jan-03 21:17
VinZ13-Jan-03 21:17 
GeneralHelp me please!!! Pin
DRemedi13-Jan-03 2:45
DRemedi13-Jan-03 2:45 
GeneralRe: Help me please!!! Pin
Nitron13-Jan-03 3:35
Nitron13-Jan-03 3:35 
GeneralCallback Pin
Mad Docs Hairy Belly13-Jan-03 2:44
Mad Docs Hairy Belly13-Jan-03 2:44 
GeneralRe: Callback Pin
includeh1013-Jan-03 3:44
includeh1013-Jan-03 3:44 
GeneralRe: Callback Pin
Mad Docs Hairy Belly13-Jan-03 4:56
Mad Docs Hairy Belly13-Jan-03 4:56 
GeneralRe: Callback Pin
valikac13-Jan-03 9:05
valikac13-Jan-03 9:05 
Generalscollbar question Pin
dan o13-Jan-03 2:29
dan o13-Jan-03 2:29 
hi,

I have a formview (in splitter window)

after OnInitialUpdate()

i do a load bitmap, but the size of bitmap is greater than the form
i like to draw scrollbars of the formview

m_static_picture.GetWindowRect(&rect); //beholder of bitmap
GetWindowRect(&rectWindow);
if(rectWindow.bottom < rect.bottom)
{
//to small a scroll bar is needed
int cx = rectWindow.Width();
int cy = rectWindow.Height();
int iDif = rect.bottom - rectWindow.bottom;
cy += iDif;

ScreenToClient(&rectWindow);
SetWindowPos(this, 0, 0, cx, cy, SWP_NOMOVE);
}

i wonder why this code is not working (i see no scollbar)


even if after adding

SCROLLINFO si;
GetScrollInfo(SB_VERT,&si);
si.nMin = 0;
si.nPage = rectWindow.Height();
si.nMax = cy;
si.nPos = 0;
si.nTrackPos = 0;
si.fMask = SIF_ALL;
si.cbSize = sizeof(si);
SetScrollInfo(SB_VERT, &si, TRUE);
ShowScrollBar(SB_VERT, TRUE);

give no result,

any ideas??
dan oudijk
Confused | :confused:
GeneralRe: scollbar question Pin
lucy13-Jan-03 6:57
lucy13-Jan-03 6:57 
QuestionRich Edit Control Bug?? Pin
RChin13-Jan-03 0:40
RChin13-Jan-03 0:40 
AnswerRe: Rich Edit Control Bug?? Pin
AlexO13-Jan-03 3:28
AlexO13-Jan-03 3:28 
Generalformat of jar file Pin
includeh1013-Jan-03 0:00
includeh1013-Jan-03 0:00 
GeneralRe: format of jar file Pin
Jon Hulatt13-Jan-03 0:56
Jon Hulatt13-Jan-03 0:56 
GeneralRe: format of jar file Pin
includeh1013-Jan-03 2:40
includeh1013-Jan-03 2:40 
GeneralRe: format of jar file Pin
User 665813-Jan-03 2:44
User 665813-Jan-03 2:44 
GeneralRe: format of jar file Pin
includeh1013-Jan-03 3:17
includeh1013-Jan-03 3:17 
GeneralRe: format of jar file Pin
Joel Lucsy13-Jan-03 10:29
Joel Lucsy13-Jan-03 10:29 
GeneralInternationalization Pin
Aswin Kumar12-Jan-03 23:57
Aswin Kumar12-Jan-03 23:57 
GeneralRe: Internationalization Pin
Ted Ferenc13-Jan-03 1:25
Ted Ferenc13-Jan-03 1:25 
GeneralRe: Internationalization Pin
Aswin Kumar13-Jan-03 17:50
Aswin Kumar13-Jan-03 17:50 
GeneralRe: Internationalization Pin
Ted Ferenc14-Jan-03 21:31
Ted Ferenc14-Jan-03 21:31 
QuestionIJL - where to get it ? Pin
s98769012-Jan-03 23:20
s98769012-Jan-03 23:20 
AnswerRe: IJL - where to get it ? Pin
xxhimanshu13-Jan-03 0:23
xxhimanshu13-Jan-03 0:23 
GeneralRemote-Access to another PC Pin
Harald Diel12-Jan-03 22:13
Harald Diel12-Jan-03 22:13 
GeneralRe: Remote-Access to another PC Pin
benjymous12-Jan-03 23:41
benjymous12-Jan-03 23:41 

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.