![]() |
Default syntax highlight |
Post Reply ![]() |
Author | |
Dukyoung ![]() Newbie ![]() Joined: 06 November 2007 Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() Posted: 06 November 2007 at 11:59am |
Hello, I want to use the c++ syntax high-lighting as default. How can I set C++ syntax as default? (before saving the file)
|
|
![]() |
|
Dukyoung ![]() Newbie ![]() Joined: 06 November 2007 Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() |
I solved it.
CXTPSyntaxEditBufferManager* pDataMan = m_ctrlSynEdit.GetEditBuffer();
CString ext = ".c";
pDataMan->SetFileExt(ext);
pDataMan->EnableParser(TRUE);
but I have another problem...
I make CXTPTabControl object on View window and add the SyntaxEditView on the tab control.
But there are 2 scrollbars on the screen. If I set editView.ScrollBars(FALSE), then all of these scrollbars disappear. I want just 1 scrollbar.
How can I do that?
|
|
![]() |
|
Knuth ![]() Groupie ![]() ![]() Joined: 01 March 2008 Location: China Status: Offline Points: 13 |
![]() ![]() ![]() ![]() ![]() |
CXTPSyntaxEditView::SetScrollBars MethodEnable/disable scroll bar.
BOOL SetScrollBars( BOOL bHorz, BOOL bVert, BOOL bUpdateReg = FALSE, BOOL bRecalcLayout = TRUE ); Parameters bHorz [in] TRUE if horizontal scroll bar need to be enabled/disabled. bVert [in] TRUE if vertical scroll bar need to be enabled/disabled. bUpdateReg [in] Set TRUE to save these options in registry. bRecalcLayout [in] Set TRUE to recalculate layout. Returns TRUE if scrollbars were updated, FALSE otherwise. |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |