|
prasad_som wrote: Something messed up with your post.
i am just copying from MSDN.. thanks for same!, reposted
|
|
|
|
|
I think you use of a encoding system for your answer ;)
|
|
|
|
|
anu7873 wrote: for First handle WM_ERASEBKGND
for First handle WM_ERASEBKGND
|
|
|
|
|
hi i am having two tab contents in a dialog. if click a "next" button in tab1 it should show the next tab. is there any function for this
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
Are you using CTabCtrl in conjunction with a property sheet? if yes, it would go very ease to do what you want to.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
I think ,you are using property pages. Why do you need next button , if you can go to required tab by clicking it.
Next button are appropriate of wizard like property sheets.
Even though you need it, have a look at CPropertySheet::SetActivePage .
void CMyPage::OnClickNext()
{
((CPropertySheet*)GetParent())->SetActivePage(iIndexOfNextPage);
}
|
|
|
|
|
sorry i dont know about property sheet. what does it mean how to use. please explain me
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
Whatever I'd said, assuming you have used property pages.
How you have created this tabs ?
|
|
|
|
|
i just created two tab panes in the tab control box.each tab pane will have their own dialog. if i clicked the next button in first tab it should show the next tab
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
Oh! I was thinking other way around. Use CTabCtrl::SetCurSel for this.
Refer this[^] sample for more info.
|
|
|
|
|
how to use CTabCtrl::SetCurSel. since the next button will be in other dialog(displaying at tab1);
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
But, you would have a CTabCtrl variable assoiciated with tab control, in that dialog.
|
|
|
|
|
yes i am having the tabcontrol in a separate dilaog. the dialog for the tabpanes will be a separate one
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
I cant understand the scenario. Have you refered sample given in one of previous posts.
|
|
|
|
|
i am having a tab control in a dialog named IDD_NETWORK wiht MyConfigTab:CTabCtrl. inside this tab i added two items LAN and WAN. these two tabs have separate dialog named (lansettings and wansettings dialogs resp) to display. if i click the button "next" in LAN dialog it should show the next tab ie WAN.
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
deeps_cute wrote: lansettings and wansettings dialogs resp
These would be associated with CTabCtrl variable in some way for sure.Access that variabel and set next tab as active.
|
|
|
|
|
|
Microsoft Visual C++ (also known as MSVC) is an Integrated development environment (IDE) product for the C, C++, and C++/CLI programming languages engineered by Microsoft. It has tools for developing and debugging C++ code, especially that written for the Microsoft Windows API, the DirectX API, and the Microsoft .NET Framework.
Appu..
"My blood group is not B+.But I have it my blood"
|
|
|
|
|
|
WhiteSky wrote: isual C++[^]
one of my Favorite site for GK
|
|
|
|
|
Its interesting for me I can find every answers on the wikipedia.
|
|
|
|
|
Hi all:
I was trying to read in data from a file while it was written, but failed because the below hFile turn out to be invalid, Is it possible to reading while writing to the same file?
HANDLE hFile = CreateFile( _T("c:\\dat.txt"), GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
|
|
|
|
|
LiYS wrote: HANDLE hFile = CreateFile( _T("c:\\dat.txt"), GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
The above code is to open a file for reading, but how the file was opened for writing?..
The access permission should allow shared reading, while opening the file for writing also..
Hope this will help...
Do your Duty and Don't expect the Result
|
|
|
|
|
|
You can alo use of CFile::Read
|
|
|
|