Click here to Skip to main content
15,867,568 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
AnswerRe: Calling a com interface function ,but find a problem Pin
Richard MacCutchan13-Nov-10 5:51
mveRichard MacCutchan13-Nov-10 5:51 
AnswerRe: Calling a com interface function ,but find a problem Pin
Stephen Hewitt13-Nov-10 18:14
Stephen Hewitt13-Nov-10 18:14 
Questionhello i have a problem with linux Pin
lxlenovostar11-Nov-10 15:19
lxlenovostar11-Nov-10 15:19 
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 
Why "FlatSB" is useless in WTL?
::InitializeFlatSB,::FlatSB_EnableScrollBar,::FlatSB_SetScrollProp...return 0.

Create a Dialog(or Edit Control、List Control...),
Set show HorizontalScrollBar and VerticalScrollBar,
in OnInitDialog(...):
BOOL bRet = ::InitializeFlatSB(m_hWnd);
bRet = ::FlatSB_EnableScrollBar(m_hWnd,SB_BOTH,ESB_ENABLE_BOTH);
bRet = ::FlatSB_SetScrollProp(m_hWnd, WSB_PROP_VSTYLE, FSB_FLAT_MODE, TRUE);
bRet = ::FlatSB_SetScrollProp(m_hWnd, WSB_PROP_HSTYLE, FSB_FLAT_MODE, TRUE);
// change scrollbar color
bRet = ::FlatSB_SetScrollProp(m_hWnd, WSB_PROP_HBKGCOLOR, 0x008000ff, TRUE);
bRet = ::FlatSB_SetScrollProp(m_hWnd, WSB_PROP_VBKGCOLOR, 0x0000ff80, TRUE);

this works on MFC!
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 
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 

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.