|
Well, just curious, how to use this control under a dialog-based program?
I try to put the code at the dialog's onCreate, and then I get "no window handle" warning and then the program won't launch.
I then try to put the code at OnInitialDialog, but didn't show up well.
Anyone ever makes it on Dialog-base?
__________________
Suggestions go to -
http://www.ptez.com/ : Pretty Easy Solutions!
Professional Hosting Service w/ 100GB Bandwidth
|
|
|
|
|
please follow the three steps:
1. Make CCaptionView to CWndSliderView inherit form CWnd instead of CView
2. Create a CWndSliderView like this, its the parent window can be any windows.
CWndSliderView* pTetsV = new CWndSliderView;
pTetsV->Create(NULL, NULL, WS_VISIBLE | WS_CHILD, CRect(0, 0, 322, 428), this), 0x3399);
pTetsV->CreateView( _T("1 Test"), RUNTIME_CLASS(CMyListView), NULL);
pTetsV->CreateView( _T("2 Test"), RUNTIME_CLASS(CMyListView), NULL);
3. Sent WM_SIZE to CWndSliderView
WPARAM wParam = SIZE_RESTORED;
LPARAM lParam = 0x3100310;
pTetsV->SendMessage(WM_SIZE, wParam, lParam);
it seems work.
|
|
|
|
|
This is a great control! it has a bug though...
if you add an extra bar for example through a menu option ->
InsertPage( "dialog test", IDD_DIALOG1, 0);
afterwards, some of the buttons will be corrupted.
I'm not sure what's causing it though.
Does anyone know how to fix this?
--
Jan
|
|
|
|
|
Das ist gut!
********************
The Endless Nameless
mailto: then@beep.ru
********************
|
|
|
|
|
I want to CFormView for Sliding Window, so I use CreateView Function like below,
nID = pObarChild2->CreateView( _T("4 Child CFormView 4"), RUNTIME_CLASS(CFormView), pContext );
But if I did like this, the view didn't be created. So I debuged into this code.. and..
pWnd = STATIC_DOWNCAST( CWnd, pViewClass->CreateObject() );
In this code, STATIC_DOWNCAST returns NULL (i.e. pWnd = NULL) so CreateView returns SOB_ERROR.
How can I use CFormView~... plz.. It's very important for me....
Namkyeong Lee
|
|
|
|
|
The problem is that CFormView cannot be created dynamically, so you need to derive a new class from CFormView that can. Basically all that is needed is:
DECLARE_DYNCREATE(CMyFormView)
IMPLEMENT_DYNCREATE(CMyFormView, CFormView)
CMyFormView::CMyFormView() : CFormView(IDD_MY_TEMPLATE) {}
|
|
|
|
|
How about an indicator that shows which tab is currently on screen ?
Other than that ... great work !
regards
|
|
|
|
|
1.) Wow, great stuff.
2.) The mention in the header about "not charging" for it, does that mean use of the source code, or that this cannot be incorporated into commercial projects?
Thanks!
|
|
|
|
|
I have a requirement where in i need to implement the same functionality as a menu based application. What i mean is that instead of having menu items i need to have the same effect as that the outlook bar(which u have acieved in ur slider bar). not in the side but as menus
Can i use the WndSlider workspace(as mentioned in ur code) as includes and achieve this functionality. if so how?
Heeded needed immediately
Can it do done if so how?
help me
vinay
|
|
|
|