Click here to Skip to main content
16,005,162 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: MACRO which give me the line number of a cpp file?!? Pin
Martyn Pearson15-May-03 22:40
Martyn Pearson15-May-03 22:40 
GeneralRe: MACRO which give me the line number of a cpp file?!? Pin
Raphael Kindt15-May-03 23:40
Raphael Kindt15-May-03 23:40 
Generaldownloading file by URL Pin
Ares215-May-03 22:18
Ares215-May-03 22:18 
GeneralRe: downloading file by URL Pin
Ares216-May-03 1:11
Ares216-May-03 1:11 
Generaltab control help!!!! Pin
summo15-May-03 20:40
summo15-May-03 20:40 
GeneralSetting Dialog Tab Order With Propertysheet Pin
John Clump15-May-03 20:25
John Clump15-May-03 20:25 
GeneralRe: Setting Dialog Tab Order With Propertysheet Pin
Martyn Pearson15-May-03 21:39
Martyn Pearson15-May-03 21:39 
GeneralRe: Setting Dialog Tab Order With Propertysheet Pin
John Clump16-May-03 22:14
John Clump16-May-03 22:14 
I looked up SetWindowPos in MSDN, and tried a few things, but none of them affected the tab order from the dialog controls to the propertysheet, and the propertysheet is last in the tab order.

Here is the code I use to create the propertysheet dynamically, IDC_PPS_MAIN is a dialog resource, m_ppsMain is a CPropertysheet object. This code is ran in a dialog in its OnInitDialog() function:

<br />
	m_ppsMain.Create(this, WS_CHILD | WS_VISIBLE, 0);<br />
	m_ppsMain.ModifyStyleEx(0, WS_EX_CONTROLPARENT);<br />
	m_ppsMain.ModifyStyle(0, WS_TABSTOP);<br />
<br />
	CRect rcSheet;<br />
	GetDlgItem(IDC_PPS_MAIN)->GetWindowRect(&rcSheet);<br />
	ScreenToClient(&rcSheet);<br />
	m_ppsMain.SetWindowPos(NULL, rcSheet.left- 7, rcSheet.top - 7, 0, 0,<br />
		SWP_NOZORDER | SWP_NOSIZE);<br />
<br />
	// set all pages active once to avoid assertions<br />
        m_ppsMain.SetActivePage(1);<br />
	m_ppsMain.SetActivePage(2);<br />
	m_ppsMain.SetActivePage(3);<br />
	m_ppsMain.SetActivePage(4);<br />
	m_ppsMain.SetActivePage(0);<br />

GeneralRe: Setting Dialog Tab Order With Propertysheet Pin
Gary R. Wheeler17-May-03 4:55
Gary R. Wheeler17-May-03 4:55 
GeneralDisplay mirror drivers Pin
vikramlinux15-May-03 19:15
vikramlinux15-May-03 19:15 
GeneralDestructor Order Pin
Andrew Walker15-May-03 17:20
Andrew Walker15-May-03 17:20 
GeneralRe: Destructor Order Pin
Taka Muraoka15-May-03 18:58
Taka Muraoka15-May-03 18:58 
GeneralRe: Destructor Order Pin
Vikram A Punathambekar16-May-03 0:12
Vikram A Punathambekar16-May-03 0:12 
GeneralRe: Destructor Order Pin
Andrew Walker16-May-03 1:35
Andrew Walker16-May-03 1:35 
Generalerror C2601: 'CreateArrayOfRandomNumbers' : local function definitions are illegal Pin
linex15-May-03 17:16
linex15-May-03 17:16 
GeneralRe: error C2601: 'CreateArrayOfRandomNumbers' : local function definitions are illegal Pin
Taka Muraoka15-May-03 19:03
Taka Muraoka15-May-03 19:03 
GeneralRe: error C2601: 'CreateArrayOfRandomNumbers' : local function definitions are illegal Pin
linex15-May-03 19:47
linex15-May-03 19:47 
GeneralRe: error C2601: 'CreateArrayOfRandomNumbers' : local function definitions are illegal Pin
Vikram A Punathambekar16-May-03 0:17
Vikram A Punathambekar16-May-03 0:17 
GeneralRe: error C2601: 'CreateArrayOfRandomNumbers' : local function definitions are illegal Pin
Martyn Pearson15-May-03 21:43
Martyn Pearson15-May-03 21:43 
GeneralRe: error C2601: 'CreateArrayOfRandomNumbers' : local function definitions are illegal Pin
David Crow16-May-03 3:51
David Crow16-May-03 3:51 
GeneralRe: error C2601: 'CreateArrayOfRandomNumbers' : local function definitions are illegal Pin
linex16-May-03 15:36
linex16-May-03 15:36 
GeneralBitmap Processing Pin
sooyewguan15-May-03 16:58
sooyewguan15-May-03 16:58 
Questionifstream ambiguity error??? Pin
alex.barylski15-May-03 16:51
alex.barylski15-May-03 16:51 
AnswerRe: ifstream ambiguity error??? Pin
valikac15-May-03 18:29
valikac15-May-03 18:29 
GeneralZModem protocol Pin
SNathani15-May-03 15:09
SNathani15-May-03 15: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.