Click here to Skip to main content
15,916,692 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Hex number string to decimal number string (and vica versa) Pin
ThatsAlok12-May-05 1:22
ThatsAlok12-May-05 1:22 
GeneralRe: Hex number string to decimal number string (and vica versa) Pin
David Crow12-May-05 2:19
David Crow12-May-05 2:19 
GeneralRe: Hex number string to decimal number string (and vica versa) Pin
Heiko Gschwind12-May-05 2:57
Heiko Gschwind12-May-05 2:57 
GeneralRe: Hex number string to decimal number string (and vica versa) Pin
David Crow12-May-05 4:14
David Crow12-May-05 4:14 
QuestionHow to determine if IE has finish loading. Pin
Member 46884411-May-05 21:50
Member 46884411-May-05 21:50 
AnswerRe: How to determine if IE has finish loading. Pin
Abhi Lahare11-May-05 22:45
Abhi Lahare11-May-05 22:45 
AnswerRe: How to determine if IE has finish loading. Pin
Kharfax12-May-05 7:23
Kharfax12-May-05 7:23 
GeneralScrolling using MouseWheel Pin
laiju11-May-05 20:03
laiju11-May-05 20:03 
:-DI am using MDI architecture wherein I need to scroll the MDI Child windows manually by dragging the scroll bars and using the Mouse Wheel.

For setting the horiz. & vert. scrolls in my child views, I have used the foll.
BOOL CChildFrame::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying the CREATESTRUCT cs
if( !CMDIChildWnd::PreCreateWindow(cs) )
return FALSE;
cs.style = WS_CHILD|WS_OVERLAPPEDWINDOW|WS_CAPTION|WS_MINIMIZEBOX|WS_SIZEBOX|WS_VSCROLL|WS_HSCROLL;
//cs.dwExStyle = WS_EX_RIGHTSCROLLBAR;
return TRUE;
}
*******************************************************************
So both the scrolls are visible. But iam not able to scroll the view by dragging the scrolls manually.
In order to implement MouseWheel i have defined the following.
*********************************************************************
BOOL CKolOSDBuilderView::OnMouseWheel(UINT nFlags, short zDelta, CPoint pt)
{
CPoint devPos;
devPos = GetDeviceScrollPosition();
if (zDelta < 0)
SetScrollPos(SB_VERT, devPos.y + m_panelVer / 10, TRUE);
else
SetScrollPos(SB_VERT, devPos.y - m_panelVer / 10, TRUE);


// this->ScrollWindow(devPos.x,devPos.y,
InvalidateRect(0); // Redraw

return CView::OnMouseWheel(nFlags, zDelta, pt);
}// EOF OnMouseWheel()
The handler is invoked but the scroll positions remain unchanged.

laiju
GeneralRe: Scrolling using MouseWheel Pin
Priyank Bolia11-May-05 20:50
Priyank Bolia11-May-05 20:50 
GeneralRe: Scrolling using MouseWheel Pin
laiju11-May-05 22:21
laiju11-May-05 22:21 
GeneralRe: Scrolling using MouseWheel Pin
ThatsAlok12-May-05 3:08
ThatsAlok12-May-05 3:08 
GeneralRe: Scrolling using MouseWheel Pin
laiju12-May-05 3:21
laiju12-May-05 3:21 
GeneralRe: Scrolling using MouseWheel Pin
Priyank Bolia12-May-05 4:25
Priyank Bolia12-May-05 4:25 
QuestionText segmentation/detection from images. Any idea??? Pin
Bruce_Almighty11-May-05 18:43
Bruce_Almighty11-May-05 18:43 
AnswerRe: Text segmentation/detection from images. Any idea??? Pin
Christian Graus11-May-05 19:06
protectorChristian Graus11-May-05 19:06 
GeneralRe: Text segmentation/detection from images. Any idea??? Pin
Bruce_Almighty11-May-05 20:46
Bruce_Almighty11-May-05 20:46 
GeneralSNMP version 3 Pin
Juwairia11-May-05 18:27
Juwairia11-May-05 18:27 
GeneralQuestion of AppBar (Shell Programming)---Emergency! Pin
GhostEx11-May-05 17:44
GhostEx11-May-05 17:44 
GeneralRe: Question of AppBar (Shell Programming)---Emergency! Pin
GhostEx11-May-05 17:45
GhostEx11-May-05 17:45 
GeneralRe: Question of AppBar (Shell Programming)---Emergency! Pin
Christian Graus11-May-05 18:26
protectorChristian Graus11-May-05 18:26 
GeneralRe: Question of AppBar (Shell Programming)---Emergency! Pin
GhostEx12-May-05 4:21
GhostEx12-May-05 4:21 
GeneralReceive and Send of CSocket Pin
microsoftcertificate11-May-05 17:33
sussmicrosoftcertificate11-May-05 17:33 
GeneralRe: Receive and Send of CSocket Pin
ThatsAlok11-May-05 20:12
ThatsAlok11-May-05 20:12 
GeneralHave some problem with String Type Pin
popo8411-May-05 17:33
popo8411-May-05 17:33 
GeneralRe: Have some problem with String Type Pin
Christian Graus11-May-05 17:43
protectorChristian Graus11-May-05 17:43 

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.