[MFC/VS2017] CSliderCtrl를 CDockablePane에 넣을 때 화면에 타나지 않은 문제 해결
프로그래밍/TOOL & TIP 2019. 4. 20. 13:37아래와 같이 TBS_NOTHUMB 속성을 제외 해줘야 함.
int CTimelineWnd::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CDockablePane::OnCreate(lpCreateStruct) == -1)
return -1;
// 타임라인 윈도우 속성
const DWORD dwStyle = WS_CHILD | WS_VISIBLE | TBS_AUTOTICKS ;
if (!m_sliderCtrl.Create(dwStyle & ~TBS_NOTHUMB, CRect(10,10,100,20), this, 101))
{
TRACE0("SLIDE CTRL을 만들지 못했습니다.\n");
return -1; // 만들지 못했습니다.
}
....
}
'프로그래밍 > TOOL & TIP' 카테고리의 다른 글
ToolTip (풍선도움말) 간단하게 구현하기 ( by Win32) (0) | 2011.06.08 |
---|