Click here to Skip to main content
15,920,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to find lenght of string? Pin
David Crow14-Jun-04 8:37
David Crow14-Jun-04 8:37 
GeneralRe: How to find lenght of string? Pin
bikram singh14-Jun-04 8:46
bikram singh14-Jun-04 8:46 
GeneralRe: How to find lenght of string? Pin
bikram singh14-Jun-04 8:57
bikram singh14-Jun-04 8:57 
GeneralDebugging extern functions Pin
mufasa210-Jun-04 23:21
mufasa210-Jun-04 23:21 
GeneralRe: Debugging extern functions Pin
jmkhael10-Jun-04 23:31
jmkhael10-Jun-04 23:31 
GeneralRe: Debugging extern functions Pin
David Crow11-Jun-04 2:28
David Crow11-Jun-04 2:28 
GeneralRe: Debugging extern functions Pin
mufasa211-Jun-04 2:50
mufasa211-Jun-04 2:50 
GeneralDynamically resize dialog Pin
marcomars10-Jun-04 22:56
marcomars10-Jun-04 22:56 
Hello Smile | :) ,
I have a dialog based application.
On a menu command I need to hide sone controls (edit box and buttons) and I can do it (setting as not visible)

Now I need to resize the main dialog, since there is an empty area.

I tried with this (IDD_TEST_GUI_DIALOG is the ID of the main dialog window):

CWnd* pWnd = GetDlgItem(IDD_TEST_GUI_DIALOG);
RECT rc;

pWnd->GetWindowRect(&rc);
rc.right -= 100;
ScreenToClient(&rc);
pWnd->MoveWindow(&rc);


but I get an error.

If, instead of IDD_TEST_GUI_DIALOG, I put the ID of any other child element the function works.

What did I do wrong?

In debugging I find that, after GetDlgItem pWnd is 00000

Thanks in advance Smile | :)

Marco.
GeneralRe: Dynamically resize dialog Pin
V.10-Jun-04 23:16
professionalV.10-Jun-04 23:16 
GeneralRe: Dynamically resize dialog Pin
Edwin Brunner10-Jun-04 23:22
Edwin Brunner10-Jun-04 23:22 
GeneralC++ basic data type questions Pin
Indrawati10-Jun-04 22:48
Indrawati10-Jun-04 22:48 
GeneralRe: C++ basic data type questions Pin
V.10-Jun-04 23:12
professionalV.10-Jun-04 23:12 
GeneralRe: C++ basic data type questions Pin
jmkhael10-Jun-04 23:24
jmkhael10-Jun-04 23:24 
GeneralRe: C++ basic data type questions Pin
Prakash Nadar10-Jun-04 23:41
Prakash Nadar10-Jun-04 23:41 
GeneralRe: C++ basic data type questions Pin
David Crow11-Jun-04 2:24
David Crow11-Jun-04 2:24 
GeneralRe: C++ basic data type questions Pin
Anonymous10-Jun-04 23:42
Anonymous10-Jun-04 23:42 
GeneralRe: C++ basic data type questions Pin
David Crow11-Jun-04 2:22
David Crow11-Jun-04 2:22 
GeneralHyperthreading and Mutexes Pin
[d3m0n]10-Jun-04 22:47
[d3m0n]10-Jun-04 22:47 
GeneralRe: Hyperthreading and Mutexes Pin
Neville Franks11-Jun-04 1:39
Neville Franks11-Jun-04 1:39 
GeneralRe: Hyperthreading and Mutexes Pin
[d3m0n]11-Jun-04 2:05
[d3m0n]11-Jun-04 2:05 
GeneralRe: Hyperthreading and Mutexes Pin
Neville Franks11-Jun-04 7:59
Neville Franks11-Jun-04 7:59 
GeneralRe: Hyperthreading and Mutexes Pin
[d3m0n]13-Jun-04 21:33
[d3m0n]13-Jun-04 21:33 
GeneralVectorization Pin
magpierre10-Jun-04 22:38
magpierre10-Jun-04 22:38 
GeneralRe: Vectorization Pin
Indrawati10-Jun-04 23:00
Indrawati10-Jun-04 23:00 
GeneralRe: Vectorization Pin
Antony M Kancidrowski11-Jun-04 1:06
Antony M Kancidrowski11-Jun-04 1:06 

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.