Click here to Skip to main content
13,549,157 members

ATL / WTL / STL

 
PinnedHOW TO ANSWER A QUESTION Pin
Chris Maunder16-Jul-09 3:09
adminChris Maunder16-Jul-09 3:09 
PinnedHow to get an answer to your question Pin
Chris Maunder16-Jul-09 3:05
adminChris Maunder16-Jul-09 3:05 
QuestionHow to use CUDA programming to calculate and process the correct number Pin
Member 1378925119-Apr-18 21:35
memberMember 1378925119-Apr-18 21:35 
AnswerRe: How to use CUDA programming to calculate and process the correct number Pin
Richard MacCutchan19-Apr-18 21:54
protectorRichard MacCutchan19-Apr-18 21:54 
Rant[REPOST] How to use CUDA programming to calculate and process the correct number Pin
Richard Deeming20-Apr-18 1:10
mvpRichard Deeming20-Apr-18 1:10 
QuestionHide context menu on CScrollBar in MFC. Pin
Sampath57918-Apr-18 3:07
memberSampath57918-Apr-18 3: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.
AnswerRe: Hide context menu on CScrollBar in MFC. Pin
Victor Nijegorodov18-Apr-18 10:10
memberVictor Nijegorodov18-Apr-18 10:10 
GeneralRe: Hide context menu on CScrollBar in MFC. Pin
Sampath57919-Apr-18 2:10
memberSampath57919-Apr-18 2:10 
AnswerRe: Hide context menu on CScrollBar in MFC. Pin
Jochen Arndt19-Apr-18 3:05
mvpJochen Arndt19-Apr-18 3:05 
GeneralRe: Hide context menu on CScrollBar in MFC. Pin
Sampath57919-Apr-18 17:24
memberSampath57919-Apr-18 17:24 
QuestionHow to use .Def File Pin
tasumisra10-Apr-18 19:57
membertasumisra10-Apr-18 19:57 
AnswerRe: How to use .Def File Pin
Richard MacCutchan10-Apr-18 21:02
protectorRichard MacCutchan10-Apr-18 21:02 
GeneralRe: How to use .Def File Pin
tasumisra10-Apr-18 21:17
membertasumisra10-Apr-18 21:17 
GeneralRe: How to use .Def File Pin
Richard MacCutchan10-Apr-18 21:21
protectorRichard MacCutchan10-Apr-18 21:21 
GeneralRe: How to use .Def File Pin
tasumisra11-Apr-18 0:19
membertasumisra11-Apr-18 0:19 
GeneralRe: How to use .Def File Pin
Richard MacCutchan11-Apr-18 1:41
protectorRichard MacCutchan11-Apr-18 1:41 
GeneralRe: How to use .Def File Pin
tasumisra16-Apr-18 18:53
membertasumisra16-Apr-18 18:53 
QuestionRe: How to use .Def File Pin
Richard MacCutchan16-Apr-18 20:50
protectorRichard MacCutchan16-Apr-18 20:50 
QuestionAdding two matrix objects and assigning the result to third object using overloaded operators ? Pin
Tarun Jha23-Mar-18 21:17
memberTarun Jha23-Mar-18 21:17 
AnswerRe: Adding two matrix objects and assigning the result to third object using overloaded operators ? Pin
Richard MacCutchan23-Mar-18 23:34
protectorRichard MacCutchan23-Mar-18 23:34 
GeneralRe: Adding two matrix objects and assigning the result to third object using overloaded operators ? Pin
Tarun Jha24-Mar-18 3:58
memberTarun Jha24-Mar-18 3:58 
GeneralRe: Adding two matrix objects and assigning the result to third object using overloaded operators ? Pin
Richard MacCutchan24-Mar-18 4:31
protectorRichard MacCutchan24-Mar-18 4:31 
GeneralRe: Adding two matrix objects and assigning the result to third object using overloaded operators ? Pin
Tarun Jha24-Mar-18 8:17
memberTarun Jha24-Mar-18 8:17 
QuestionWhy the arrow button on TabControl is not working in my MFC application. Pin
Sampath57910-Mar-18 0:35
memberSampath57910-Mar-18 0:35 
AnswerRe: Why the arrow button on TabControl is not working in my MFC application. Pin
Richard MacCutchan10-Mar-18 1:07
protectorRichard MacCutchan10-Mar-18 1:07 

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 |
Web04 | 2.8.180515.1 | Last Updated 20 Apr 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid