Click here to Skip to main content
15,893,663 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
AnswerRe: hello i have a problem with linux Pin
Dr.Walt Fair, PE11-Nov-10 17:10
professionalDr.Walt Fair, PE11-Nov-10 17:10 
Questionwindows c++ fstream log file rollover Pin
Alan Kurlansky10-Nov-10 4:18
Alan Kurlansky10-Nov-10 4:18 
AnswerRe: windows c++ fstream log file rollover Pin
Richard MacCutchan10-Nov-10 6:12
mveRichard MacCutchan10-Nov-10 6:12 
GeneralRe: windows c++ fstream log file rollover Pin
Alan Kurlansky12-Nov-10 4:18
Alan Kurlansky12-Nov-10 4:18 
QuestionWhy "FlatSB" is useless in WTL? ::InitializeFlatSB,::FlatSB_EnableScrollBar,::FlatSB_SetScrollProp...return 0. Pin
dancingfish9-Nov-10 20:01
dancingfish9-Nov-10 20:01 
AnswerRe: Why "FlatSB" is useless in WTL? ::InitializeFlatSB,::FlatSB_EnableScrollBar,::FlatSB_SetScrollProp...return 0. [modified] Pin
Alain Rist9-Nov-10 21:31
Alain Rist9-Nov-10 21:31 
GeneralRe: Why "FlatSB" is useless in WTL? ::InitializeFlatSB,::FlatSB_EnableScrollBar,::FlatSB_SetScrollProp...return 0. Pin
dancingfish10-Nov-10 17:11
dancingfish10-Nov-10 17:11 
AnswerRe: Why "FlatSB" is useless in WTL? ::InitializeFlatSB,::FlatSB_EnableScrollBar,::FlatSB_SetScrollProp...return 0. Pin
Alain Rist10-Nov-10 22:40
Alain Rist10-Nov-10 22:40 
Hi,
dancingfish wrote:
I know the class CFlatScrollBarImpl, i've got a failed try

As you don't explain what you tried and what you mean by failed it is difficult to help you.
Use WTL::CFlatScrollBar this way:
class CFlatScrollBarWnd : public CWindowImpl<CFlatScrollBarWnd, CFlatScrollBar>
{
public:
	DECLARE_WND_CLASS(NULL)

	BEGIN_MSG_MAP(CFlatScrollBarWnd)
		MESSAGE_HANDLER(WM_CREATE, OnCreate)
	END_MSG_MAP()

	LRESULT OnCreate(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
	{
		FlatSB_Initialize();
		FlatSB_SetScrollProp(WSB_PROP_VSTYLE, FSB_ENCARTA_MODE);
		FlatSB_ShowScrollBar(SB_BOTH);
		FlatSB_SetScrollRange(SB_HORZ, 0, 2000);
		FlatSB_SetScrollRange(SB_HORZ, 0, 1000);
		// ...
		return 0;
	}
};


Remember that the Flat SB control is not supported on WinXP and later, so nothing happens there.

Good luck,
AR
When the wise (person) points at the moon the fool looks at the finger (Chinese proverb)

GeneralRe: Why "FlatSB" is useless in WTL? ::InitializeFlatSB,::FlatSB_EnableScrollBar,::FlatSB_SetScrollProp...return 0. Pin
dancingfish10-Nov-10 23:20
dancingfish10-Nov-10 23:20 
AnswerRe: Why "FlatSB" is useless in WTL? ::InitializeFlatSB,::FlatSB_EnableScrollBar,::FlatSB_SetScrollProp...return 0. [modified] Pin
Alain Rist11-Nov-10 23:26
Alain Rist11-Nov-10 23:26 
QuestionImplementing Bookmark_Enabled OLE DB Provider/IDBSchemaRowset Pin
RezaAsAdi8-Nov-10 1:12
RezaAsAdi8-Nov-10 1:12 
Questionexception handling [modified] Pin
khomeyni7-Nov-10 8:41
khomeyni7-Nov-10 8:41 
AnswerRe: exception handling Pin
Sauro Viti7-Nov-10 10:55
professionalSauro Viti7-Nov-10 10:55 
GeneralRe: exception handling Pin
khomeyni9-Nov-10 7:45
khomeyni9-Nov-10 7:45 
AnswerRe: exception handling Pin
ShilpiP7-Nov-10 18:49
ShilpiP7-Nov-10 18:49 
QuestionHow to add a button to the message item toolbar in outlook ? Pin
ERLN2-Nov-10 18:17
ERLN2-Nov-10 18:17 
QuestionHow to read an HDF file and convert it into ASCII file(extension) using C programme Pin
cmaheshwari1622-Oct-10 3:35
cmaheshwari1622-Oct-10 3:35 
AnswerRe: How to read an HDF file and convert it into ASCII file(extension) using C programme Pin
cariolihome27-Oct-10 11:17
cariolihome27-Oct-10 11:17 
AnswerRe: How to read an HDF file and convert it into ASCII file(extension) using C programme Pin
Stuart Dootson27-Oct-10 11:56
professionalStuart Dootson27-Oct-10 11:56 
AnswerRe: How to read an HDF file and convert it into ASCII file(extension) using C programme Pin
schoetbi15-Mar-11 6:31
schoetbi15-Mar-11 6:31 
GeneralRe: How to read an HDF file and convert it into ASCII file(extension) using C programme Pin
cmaheshwari1615-Mar-11 19:35
cmaheshwari1615-Mar-11 19:35 
QuestionDialog Based Applications Pin
Anil Kumar.Arvapalli22-Oct-10 1:29
Anil Kumar.Arvapalli22-Oct-10 1:29 
AnswerRe: Dialog Based Applications Pin
Richard MacCutchan22-Oct-10 2:48
mveRichard MacCutchan22-Oct-10 2:48 
QuestionShow tooltip in CTreeViewCtrl use WTL Pin
shg10421-Oct-10 23:38
shg10421-Oct-10 23:38 
AnswerRe: Show tooltip in CTreeViewCtrl use WTL Pin
Alain Rist22-Oct-10 1:44
Alain Rist22-Oct-10 1:44 

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.