Click here to Skip to main content
13,831,158 members

ATL / WTL / STL

 
PinnedHOW TO ANSWER A QUESTION PinPopular
Chris Maunder16-Jul-09 4:09
adminChris Maunder16-Jul-09 4:09 
PinnedHow to get an answer to your question PinPopular
Chris Maunder16-Jul-09 4:05
adminChris Maunder16-Jul-09 4:05 
QuestionMessage Closed Pin
17-Dec-18 20:15
memberMember 1409315717-Dec-18 20:15 
QuestionMessage Closed Pin
17-Dec-18 20:04
memberMember 1409315717-Dec-18 20:04 
GeneralMessage Closed Pin
17-Dec-18 19:58
memberMember 1409315717-Dec-18 19:58 
GeneralMessage Closed Pin
17-Dec-18 19:57
memberMember 1409315717-Dec-18 19:57 
QuestionWhich type of Regex best to learn for programming with C? Pin
Member 1408888017-Dec-18 4:43
memberMember 1408888017-Dec-18 4:43 
AnswerRe: Which type of Regex best to learn for programming with C? Pin
Richard MacCutchan17-Dec-18 4:53
protectorRichard MacCutchan17-Dec-18 4:53 
GeneralRe: Which type of Regex best to learn for programming with C? Pin
Member 1408888017-Dec-18 6:57
memberMember 1408888017-Dec-18 6:57 
GeneralRe: Which type of Regex best to learn for programming with C? Pin
Richard MacCutchan17-Dec-18 7:48
protectorRichard MacCutchan17-Dec-18 7:48 
QuestionDirectory manipulation in C++ Pin
tasumisra16-Oct-18 5:26
membertasumisra16-Oct-18 5:26 
AnswerRe: Directory manipulation in C++ Pin
Richard MacCutchan16-Oct-18 5:34
protectorRichard MacCutchan16-Oct-18 5:34 
QuestionMicrosoft Office Object Library Pin
JM225114-Oct-18 6:31
memberJM225114-Oct-18 6:31 
QuestionUnable to find atlapp.h file in Visual Studio 2017 Pin
Krishna Rao Yekkali29-Aug-18 1:17
memberKrishna Rao Yekkali29-Aug-18 1:17 
AnswerRe: Unable to find atlapp.h file in Visual Studio 2017 Pin
Jochen Arndt29-Aug-18 1:38
mveJochen Arndt29-Aug-18 1:38 
GeneralRe: Unable to find atlapp.h file in Visual Studio 2017 Pin
Krishna Rao Yekkali29-Aug-18 20:41
memberKrishna Rao Yekkali29-Aug-18 20:41 
QuestionCEditCtrl in FrameWnd Pin
john56321-Aug-18 23:24
memberjohn56321-Aug-18 23:24 
AnswerRe: CEditCtrl in FrameWnd Pin
Jochen Arndt2-Aug-18 0:33
mveJochen Arndt2-Aug-18 0:33 
QuestionMFC VC2015 How to build from command line both settings: Use Shared DLL and Use Static DLL Pin
Member 1024558715-Jul-18 2:37
professionalMember 1024558715-Jul-18 2:37 
AnswerRe: MFC VC2015 How to build from command line both settings: Use Shared DLL and Use Static DLL Pin
Jochen Arndt15-Jul-18 23:24
mveJochen Arndt15-Jul-18 23:24 
GeneralRe: MFC VC2015 How to build from command line both settings: Use Shared DLL and Use Static DLL Pin
Member 1024558716-Jul-18 1:12
professionalMember 1024558716-Jul-18 1:12 
QuestionHow to use CUDA programming to calculate and process the correct number Pin
Member 1378925119-Apr-18 22:35
memberMember 1378925119-Apr-18 22:35 
AnswerRe: How to use CUDA programming to calculate and process the correct number Pin
Richard MacCutchan19-Apr-18 22:54
protectorRichard MacCutchan19-Apr-18 22:54 
Rant[REPOST] How to use CUDA programming to calculate and process the correct number Pin
Richard Deeming20-Apr-18 2:10
mveRichard Deeming20-Apr-18 2:10 
QuestionHide context menu on CScrollBar in MFC. Pin
Sampath57918-Apr-18 4:07
memberSampath57918-Apr-18 4:07 
Hi
I created a MFC application and created a horizontal scroll bar using CScrollBar calss as follows instead of default scroll bar.

if (CScrollView::OnCreate(lpCreateStruct) == -1)
        return -1;
    // TODO:  Add your specialized creation code here
    m_horzscrollbar.Create(WS_CHILD | WS_VISIBLE | SBS_HORZ | SBS_BOTTOMALIGN, CRect(0,0,100,100), this, 101);
        
    SCROLLINFO scrollInfo = { 0 };
    scrollInfo.fMask = SIF_ALL;
    scrollInfo.cbSize = sizeof(SCROLLINFO);
    scrollInfo.nMin = 0;
    scrollInfo.nMax = 1000;
    scrollInfo.nPage = 10;
    scrollInfo.nPos = 10;
    scrollInfo.nTrackPos = 10;
    
    m_horzscrollbar.SetScrollInfo(&scrollInfo);
    m_horzscrollbar.ShowWindow(1);


The above piece of code created a horizontal scroll bar. When i right click on the scroll bar, it displaying a context menu with some options like page left, page right, scroll here, scroll left and scroll left.

How can i stop this default context menu in my application since this is not required for me.

Any help is appreciated.

Thanks.

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.


Advertise | Privacy | Cookies | Terms of Service
Web01 | 2.8.190114.1 | Last Updated 17 Dec 2018
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid