8,874,771 members and growing!
Email
Password
Lost password?
Home
Articles
Chapters and Sections
>
Search
Latest Articles
Latest Tips/Tricks
Top Articles
Beginner Articles
Video Articles
Technical Blogs
Submit an Article or Tip
Post your Blog
Posting/Update Guidelines
Article Competition
Quick Answers
Ask a Question
View Unanswered Questions
View All Questions...
C# questions
ASP.NET questions
VB.NET questions
C++ questions
C#4.0 questions
Discussions
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work & Training Issues
Design and Architecture
ASP.NET
JavaScript
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
.NET Framework
Mobile
VS 11 & .NET 4.5
Sharepoint
Silverlight / WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Other Languages
>
General Indian Topics
General Chinese Topics
Zones
The Commerce Zone
The Mobile & App Zone
The Cloud Zone
The Hardware Zone
The Parallelism Zone
The WPF / Silverlight Zone
The Flex / Flash Zone
The HTML5 / CSS3 Zone
SharePoint Zone
The SQL Zone
WhitePapers / Webcasts
Solutions Center
Features
Who's Who
Most Valuable Professionals
Company Listings
Component & Service Catalog
Competitions
News
The Insider Newsletter
Newsletter archive
Press Releases
Surveys
CodeProject Stuff
Help!
What is 'The Code Project'?
General FAQ
Post a Question
Bugs and Suggestions
Site Map
Advertise with us
About Us
The Lounge
The Insider News
The Lounge
Clever Code
Hall of Shame
The Soapbox
Search within:
Articles
Quick Answers
Messages
Product Catalog
Member Pages
Member's Profile
Messages posted
Articles submitted
Blog Feeds
Technical Blog Articles
Video Articles
Recommendations
Membership FAQ
Kuldip Rindani - Professional Profile
About Kuldip Rindani
Reputation
Debut
797
Author
Novice
25
Authority
Lurker
14
Debator
Reviewer
180
Editor
Browser
58
Organiser
Member
274
Participant
0
Enquirer
C++, Unix Shell Scripts, DOTNET, ASP.NET, Sql Server 2000 and Oracle.
Member since Monday, September 15, 2003 (8 years, 8 months)
Link:
http://www.codeproject.com/Members/Kuldip-Rindani
Member No. 586525
1,348
points
Systems Engineer
India
Articles
3 (Debut)
Tech Blogs
0
Videos
0
Messages
13 (Lurker)
Q&A Questions
0
Q&A Answers
0
Tips/Tricks
0
Comments
0
View Blog
Blog RSS
For more information on Reputation please see the
FAQ
.
You must
Sign In
to use this message board.
(
secure sign-in
)
Search this forum
Refresh
First
Prev
Next
Avoiding Multiple instance of Application to start
Wednesday, March 21, 2012 9:15 PM
http://www.flounder.com/nomultiples.htm
Sign In
·
View Thread
·
Permalink
Truncate Log file in Sql server for reclaiming diskspace
Tuesday, March 24, 2009 9:04 PM
BACKUP LOG %DB_NAME% WITH TRUNCATE_ONLY
DBCC SHRINKFILE (%LOG_NAME%, %LOG_SIZE%)
Sign In
·
View Thread
·
Permalink
How to Switch View - MFC
Tuesday, January 20, 2009 12:12 AM
BOOL CMViewApp::SwitchView(CRuntimeClass *pNewView, int nRowView, int nColView)
{
CFrameWnd* pMainWnd = (CFrameWnd*)AfxGetMainWnd();
// CView* pOldActiveView = pMainWnd->GetActiveView();
CView* pOldActiveView = (CView *)((CMainFrame *)pMainWnd)->m_wndSplitter.GetPane(nRowView, nColView);
CDocument* pCurrentDoc = ((CFrameWnd*)m_pMainWnd)->GetActiveDocument();
CSplitterWnd* pSplitter = (CSplitterWnd *)pOldActiveView->GetParent();
//int row, col;
ASSERT(pSplitter->IsChildPane(pOldActiveView, nRowView, nColView));
CRect viewrect;
pOldActiveView->GetWindowRect(&viewrect);
// set flag so that document will not be deleted when view is destroyed
m_bAutoDelete = FALSE;
// Delete existing view
pOldActiveView->DestroyWindow();
// Create new view
CCreateContext context;
context.m_pNewViewClass = pNewView;
context.m_pCurrentDoc = pCurrentDoc;
context.m_pNewDocTemplate = NULL;
context.m_pLastView = NULL;
context.m_pCurrentFrame = NULL;
if (!pSplitter->CreateView(nRowView, nColView, pNewView, viewrect.Size(),
&context))
{
return FALSE; //error occured,
}
pMainWnd->InitialUpdateFrame(pCurrentDoc, TRUE);
// Set active
CView* pNewViewClass = (CView *)pSplitter->GetPane(nRowView, nColView);
pSplitter->GetParentFrame()->SetActiveView(pNewViewClass);
pSplitter->RecalcLayout();
pNewViewClass->SendMessage(WM_PAINT);
return TRUE;
}
Sign In
·
View Thread
·
Permalink
Last Visit: 12:36 28 May '12 Last Update: 8:36 28 May '12
1
General
News
Suggestion
Question
Bug
Answer
Joke
Rant
Admin
Advertise
|
Privacy
|
Mobile
Web03 | 2.5.120528.1 | Last Updated 28 May 2012
Copyright ©
CodeProject
, 1999-2012
All Rights Reserved.
Terms of Use
Layout:
fixed
|
fluid