Click here to Skip to main content
16,005,339 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Pretranslatemeassage Pin
Chris Losinger31-Aug-02 19:14
professionalChris Losinger31-Aug-02 19:14 
GeneralRe: Pretranslatemeassage Pin
Mazdak31-Aug-02 21:13
Mazdak31-Aug-02 21:13 
GeneralLVM_SORTITEMS Pin
CaesarCZ31-Aug-02 14:56
CaesarCZ31-Aug-02 14:56 
GeneralRe: LVM_SORTITEMS Pin
TigerNinja_31-Aug-02 19:22
TigerNinja_31-Aug-02 19:22 
Generalcoding the CSliderCtrl Pin
ns31-Aug-02 9:46
ns31-Aug-02 9:46 
GeneralRe: coding the CSliderCtrl Pin
PJ Arends31-Aug-02 10:16
professionalPJ Arends31-Aug-02 10:16 
GeneralRe: coding the CSliderCtrl Pin
ns31-Aug-02 10:24
ns31-Aug-02 10:24 
GeneralRe: coding the CSliderCtrl Pin
ns31-Aug-02 10:36
ns31-Aug-02 10:36 
If I put a slider on the view form, then this works:

void CSliderctrlView::OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar) 
{
	// TODO: Add your message handler code here and/or call default
	
	CFormView::OnHScroll(nSBCode, nPos, pScrollBar);

	int nPos1  = m_sl1.GetPos();
	CString temp ;
	temp.Format(" the position is %d ",nPos1);

	AfxMessageBox(temp);

}


But
1. My slider is a mainframe variable, and exists in the toolbar.

It doesnt respond to WM_HSCROLL trapped by the mainframe class. When I did the Add windows handler, the filter (right hand bottom) was set to "TopMost frame".

When I added the handler to the view class, the filter was "window"

Looks like I need to do something special to trap hscroll in the toolbar....but what? ??

Confused | :confused:
thanks,
ns
GeneralRe: coding the CSliderCtrl Pin
PJ Arends31-Aug-02 11:17
professionalPJ Arends31-Aug-02 11:17 
GeneralQusetion about sendmessage... Pin
ns31-Aug-02 11:26
ns31-Aug-02 11:26 
GeneralRe: Qusetion about sendmessage... Pin
PJ Arends31-Aug-02 11:48
professionalPJ Arends31-Aug-02 11:48 
GeneralRe: coding the CSliderCtrl Pin
PJ Arends31-Aug-02 10:53
professionalPJ Arends31-Aug-02 10:53 
GeneralRe: coding the CSliderCtrl Pin
ns31-Aug-02 12:28
ns31-Aug-02 12:28 
Generaltoolbar button picture 16by 16, or 15 by 15 Pin
ns31-Aug-02 9:40
ns31-Aug-02 9:40 
GeneralRe: toolbar button picture 16by 16, or 15 by 15 Pin
Dominik Reichl1-Sep-02 0:35
Dominik Reichl1-Sep-02 0:35 
Generaladding spinbtn -editbuddy to toolbar Pin
ns31-Aug-02 8:37
ns31-Aug-02 8:37 
Generaladding tooltips to toolbar buttons, spinbutton Pin
ns31-Aug-02 8:29
ns31-Aug-02 8:29 
GeneralRe: adding tooltips to toolbar buttons, spinbutton Pin
Vagif Abilov31-Aug-02 9:06
professionalVagif Abilov31-Aug-02 9:06 
GeneralRe: adding tooltips - Thanks!!!!! Pin
ns31-Aug-02 9:19
ns31-Aug-02 9:19 
GeneralRe: adding tooltips - Thanks!!!!! Pin
Vagif Abilov31-Aug-02 9:19
professionalVagif Abilov31-Aug-02 9:19 
GeneralRe: adding tooltips to toolbar buttons, spinbutton Pin
Shog931-Aug-02 9:12
sitebuilderShog931-Aug-02 9:12 
GeneralEasy ?, #include problems Pin
TigerNinja_31-Aug-02 6:56
TigerNinja_31-Aug-02 6:56 
GeneralRe: Easy ?, #include problems Pin
Vagif Abilov31-Aug-02 7:02
professionalVagif Abilov31-Aug-02 7:02 
GeneralRe: Easy ?, #include problems Pin
Anders Molin31-Aug-02 12:07
professionalAnders Molin31-Aug-02 12:07 
GeneralHidden Pin
Georg Haan31-Aug-02 5:36
Georg Haan31-Aug-02 5:36 

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.