Obviously you don't have a class named CMyView , so you cannot use the provided example as is. Instead you could e.g. make the provided example a stand-alone function and use it as such, i.e. simply
BOOL GetPageSize(CSize &nRetVal)
{
// rest of the example code here ...
}
mitrmkar
Posting Virtuoso
1,809 posts since Nov 2007
Reputation Points: 1,105
Solved Threads: 395