( Index )
Month

Brief Information about the January 2006 CSIG Meeting

General Review of MFC Controls and Past Meetings

by Bruce Arnold

3rd Tuesday of the month. 7:30PM - C/C++ Group, SPRS

General Review

Welcome to the C++ Users Group. This group is a "Special Interest Group" of the ACGNJ devoted to discussing programming languages in general and C, C++, and C++ for Windows programming in particular. Each month a small but hopefully useful program (complete with source code) is presented for discussion.

OBJECT ...

MFC stands for Microsoft Foundation Classes and is used in Visual C++ Version 6.0. These classes provide a wrapper for the Windows API, Application Programming Interface. Most of the functions are provided with source code so that you may analyze how they relate to the underlying API functions. At the meeting, we will review past programming code and together work through any questions related to the code.

C++ Language Elements

Microsoft Visual C++ Version 6.0.
Windows API.
Dialog Based Applications.
Slider Controls

At the meeting on Tuesday night we will be discussing these items and more.


Tracker Bar

SAMPLE CODE
===========
// Slider1Dlg.cpp : implementation file
//                      Slide Bar (TRACKER BAR) Demo using Win API
//                      ==========================================
//////////////////////////////////////////////////////////////////////////
//  TRACK BAR HAS BEEN MOVED

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

    long position;  char buff[100];

    CWnd * pWnd1 = GetDlgItem(IDC_SLIDER1);
    CWnd * pWnd2 = GetDlgItem(IDC_EDIT1);

    position = pWnd1->SendMessage(TBM_GETPOS, 0, 0);
    sprintf(buff, "%ld", position);
    pWnd2->SetWindowText(buff);
    
    CDialog::OnHScroll(nSBCode, nPos, pScrollBar);
    }
----------------------------------------------------------------------------------------------

// Slider2Dlg.cpp : implementation file
//                      Slide Bar (TRACKER BAR) Demo using CSliderControl MFC
//                      =====================================================
//////////////////////////////////////////////////////////////////////////
//  TRACK BAR HAS BEEN MOVED

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

    m_Position = m_SliderControl.GetPos();
    UpdateData(false);
    
    CDialog::OnHScroll(nSBCode, nPos, pScrollBar);
    }


"Random Access" questions start at 7:30 Tuesday night. See you there.
January 2006  C/C++ Meeting Random Access Notes
=================================================
"Companies providing Telephone services and/or software."
Net2Phone.com
Skype.com  ( version 2 has video )
DialPad.com
CuCme
TeamSpeak.com
Festoon.com
Talk to my PC.com
Audiochat, Videochat
Dameware.com
Funk Proxy
Live 365.com
Shoutcast.com
WinAmp.com
Microsoft NetMeeting
H.323 Protocol Standard
Vonage

December 2005  C/C++ Meeting Random Access Notes
=================================================
www.acgnj.org         C Users Journal - www.cuj.com
www.codeproject.com          Dr Dobbs = www.ddj.com
www.codeguru.com
msdn.microsoft.com
www.dslreports.com

SOURCE CODE

Source Code Files

For help, email me at b a r n o l d @ i e e e . o r g
Back to C++ Main Page