Click here to Skip to main content
15,903,362 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralLinker Error Pin
Yuvaraj N1-Dec-04 22:18
Yuvaraj N1-Dec-04 22:18 
Questionhow to resize property page??? Pin
includeh101-Dec-04 22:09
includeh101-Dec-04 22:09 
AnswerRe: how to resize property page??? Pin
PJ Arends1-Dec-04 22:33
professionalPJ Arends1-Dec-04 22:33 
Paolo Messina has written an article on this

http://www.codeproject.com/property/resizableproperties.asp[^]

Boiled down to basics, what you do is in your property sheet's OnSize handler is call GetTabControl() to get the tab control, resize the tab to the size you want, then call CTabCtrl::AdjustRect to get the size of the tab's client area. Then resize the active page to that area.
void CMySheet::OnSize(UINT nType, int cx, int cy)
{
   CTabCtrl *pTab = GetTabControl();
   CRect rc;
   GetClientRect(&rc);
   pTab->MoveWindow(rc);
   pTab->AdjustRect(FALSE, &rc);
   GetActivePage()->MoveWindow(rc);
}




"You're obviously a superstar." - Christian Graus about me - 12 Feb '03

"Obviously ???  You're definitely a superstar!!!" mYkel - 21 Jun '04

Within you lies the power for good - Use it!
GeneralRe: how to resize property page??? Pin
includeh101-Dec-04 23:47
includeh101-Dec-04 23:47 
QuestionWhich MFC control does this? Pin
Vancouver1-Dec-04 19:39
Vancouver1-Dec-04 19:39 
AnswerRe: Which MFC control does this? Pin
Cedric Moonen1-Dec-04 19:55
Cedric Moonen1-Dec-04 19:55 
GeneralRe: Which MFC control does this? Pin
Vancouver2-Dec-04 10:58
Vancouver2-Dec-04 10:58 
GeneralATL support to existing MFC application Pin
Ro_land1-Dec-04 19:26
Ro_land1-Dec-04 19:26 
GeneralRe: ATL support to existing MFC application Pin
Antony M Kancidrowski2-Dec-04 6:10
Antony M Kancidrowski2-Dec-04 6:10 
GeneralRe: ATL support to existing MFC application --> IT's POSSIBLE, it works !!! Pin
Roland Rubichi2-Dec-04 12:03
Roland Rubichi2-Dec-04 12:03 
QuestionHow to make a simple opengl32.dll Pin
maxmaven1-Dec-04 19:04
maxmaven1-Dec-04 19:04 
AnswerRe: How to make a simple opengl32.dll Pin
BlackDice2-Dec-04 3:01
BlackDice2-Dec-04 3:01 
GeneralNeed help using WinInet (making http requests) Pin
GrefMofovich1-Dec-04 18:56
GrefMofovich1-Dec-04 18:56 
Questionhow to store a value Pin
zahid_ash1-Dec-04 18:47
zahid_ash1-Dec-04 18:47 
AnswerRe: how to store a value Pin
RChin1-Dec-04 22:37
RChin1-Dec-04 22:37 
QuestionWill SP5 work ? Pin
Ritu Kwatra1-Dec-04 18:01
Ritu Kwatra1-Dec-04 18:01 
AnswerRe: Will SP5 work ? Pin
RChin1-Dec-04 22:30
RChin1-Dec-04 22:30 
GeneralRe: Will SP5 work ? Pin
Ritu Kwatra1-Dec-04 23:43
Ritu Kwatra1-Dec-04 23:43 
GeneralAbout Clipping algorithms Pin
Rassul Yunussov1-Dec-04 17:01
Rassul Yunussov1-Dec-04 17:01 
GeneralRe: About Clipping algorithms Pin
Ryan Binns1-Dec-04 17:05
Ryan Binns1-Dec-04 17:05 
GeneralRe: About Clipping algorithms Pin
Anonymous1-Dec-04 21:40
Anonymous1-Dec-04 21:40 
QuestionWhat is runtime Pin
Imtiaz Murtaza1-Dec-04 16:46
Imtiaz Murtaza1-Dec-04 16:46 
AnswerRe: What is runtime Pin
Ritu Kwatra1-Dec-04 18:10
Ritu Kwatra1-Dec-04 18:10 
QuestionAll code samples here are safe? Pin
nne-vitamin1-Dec-04 16:28
nne-vitamin1-Dec-04 16:28 
AnswerRe: All code samples here are safe? Pin
Ryan Binns1-Dec-04 17:09
Ryan Binns1-Dec-04 17:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.