Click here to Skip to main content
15,880,796 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionusing radio buttons Pin
swaapu3-Oct-05 0:33
swaapu3-Oct-05 0:33 
AnswerRe: using radio buttons Pin
vikas amin3-Oct-05 2:42
vikas amin3-Oct-05 2:42 
Questionusing radio buttons Pin
swaapu3-Oct-05 0:33
swaapu3-Oct-05 0:33 
AnswerRe: using radio buttons Pin
ThatsAlok3-Oct-05 1:11
ThatsAlok3-Oct-05 1:11 
QuestionRe: using radio buttons Pin
David Crow3-Oct-05 2:50
David Crow3-Oct-05 2:50 
AnswerRe: using radio buttons Pin
ThatsAlok3-Oct-05 2:56
ThatsAlok3-Oct-05 2:56 
AnswerRe: using radio buttons Pin
vikas amin3-Oct-05 2:58
vikas amin3-Oct-05 2:58 
QuestionHow to change Postion of Dialog In MFC based Application? Pin
Amarelia3-Oct-05 0:23
Amarelia3-Oct-05 0:23 
Hello Dear

I have a dialog based MFC application in which I get the HWND of some other running application window. Now I want to change to position of that window and not the Size of that window....So how to achieve ?

I do it in such way....

void CMyDialog::OnInitDialog()
{
int NewYPosition, NewXPosition;
HWND *pWnd;
pWnd = FindWindow(NULL,"NameOfWindowToChange");
CRect MyRect;
NewYPosition = 10;
NewXPosition = 10;
MyRect.top = NewYPosition;
MyRect.left = NewXPosition;

pWnd->MoveWindow(MyRect,true);
}

It moves my new window to the desired location but also changes the size of window.

Any idea what do...so that it doesn't change the size of the window.

Thank you very much

Amarelia Maehsh
Gujarat
India

AnswerRe: How to change Postion of Dialog In MFC based Application? Pin
Ghasrfakhri3-Oct-05 0:32
Ghasrfakhri3-Oct-05 0:32 
GeneralRe: How to change Postion of Dialog In MFC based Application? Pin
Amarelia3-Oct-05 0:43
Amarelia3-Oct-05 0:43 
AnswerRe: How to change Postion of Dialog In MFC based Application? Pin
ThatsAlok3-Oct-05 1:09
ThatsAlok3-Oct-05 1:09 
Questioncreate a new child frame Pin
vikas amin2-Oct-05 23:44
vikas amin2-Oct-05 23:44 
AnswerRe: create a new child frame Pin
Selvam R3-Oct-05 0:02
professionalSelvam R3-Oct-05 0:02 
GeneralRe: create a new child frame Pin
vikas amin3-Oct-05 0:53
vikas amin3-Oct-05 0:53 
QuestionI was about to assume ... Pin
Anonymous2-Oct-05 23:15
Anonymous2-Oct-05 23:15 
AnswerRe: I was about to assume ... Pin
normanS3-Oct-05 5:18
normanS3-Oct-05 5:18 
QuestionConvolution Code required Pin
karen_yingying2-Oct-05 23:11
karen_yingying2-Oct-05 23:11 
AnswerRe: Convolution Code required Pin
Ghasrfakhri3-Oct-05 0:29
Ghasrfakhri3-Oct-05 0:29 
Questionhow to store BLOB images into Oracle Database using ADO Pin
snprani2-Oct-05 20:58
snprani2-Oct-05 20:58 
AnswerRe: how to store BLOB images into Oracle Database using ADO Pin
S Douglas3-Oct-05 0:27
professionalS Douglas3-Oct-05 0:27 
QuestionDoubt about which message handler to use Pin
Ravi Sankar S2-Oct-05 20:45
Ravi Sankar S2-Oct-05 20:45 
AnswerRe: Doubt about which message handler to use Pin
Lane Yu2-Oct-05 22:01
Lane Yu2-Oct-05 22:01 
AnswerRe: Doubt about which message handler to use Pin
Intertherain3-Oct-05 2:49
Intertherain3-Oct-05 2:49 
QuestionRe: Doubt about which message handler to use Pin
David Crow3-Oct-05 2:54
David Crow3-Oct-05 2:54 
AnswerRe: Doubt about which message handler to use Pin
Ravi Sankar S3-Oct-05 3:27
Ravi Sankar S3-Oct-05 3:27 

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.