Click here to Skip to main content
15,895,656 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Passing parameter through ShellExecute Pin
CPallini12-Apr-08 2:30
mveCPallini12-Apr-08 2:30 
GeneralRe: Passing parameter through ShellExecute Pin
neha.agarwal2712-Apr-08 2:38
neha.agarwal2712-Apr-08 2:38 
GeneralRe: Passing parameter through ShellExecute Pin
Luc Pattyn12-Apr-08 3:10
sitebuilderLuc Pattyn12-Apr-08 3:10 
GeneralProblems occuring when compiling C++ Programs using visual C++ 6 Pin
scene_8412-Apr-08 0:45
scene_8412-Apr-08 0:45 
GeneralRe: Problems occuring when compiling C++ Programs using visual C++ 6 Pin
CPallini12-Apr-08 1:51
mveCPallini12-Apr-08 1:51 
GeneralRe: Problems occuring when compiling C++ Programs using visual C++ 6 Pin
Joseph Marzbani12-Apr-08 2:54
Joseph Marzbani12-Apr-08 2:54 
GeneralRe: Problems occuring when compiling C++ Programs using visual C++ 6 Pin
CPallini12-Apr-08 4:42
mveCPallini12-Apr-08 4:42 
QuestionHow set the Form on the center of my screen ? Pin
Schehaider_Aymen11-Apr-08 23:44
Schehaider_Aymen11-Apr-08 23:44 
Hi,

The Subject explains my prob, i wanna to put my formview in the middle of my screen

I use the SetWindowPos as below:
<br />
	CRect Rect;<br />
    GetParentFrame()->GetWindowRect(&Rect);<br />
    GetParentFrame()->SetWindowPos( NULL,0,0,900 ,200 ,SWP_NOMOVE | SWP_NOZORDER);  <br />
    SIZE size;<br />
    size.cx=Rect.Width()/2;<br />
    size.cy=Rect.Height()/2;<br />
    SetScaleToFitSize(size); <br />


in other way i wanna change the x, and the y ( i don't matter about the cx & cy) coz they depend on other vars but what ever the cx & cy values are, i wanna havr the form in the center of my screen.

PS: may be i should use some funct like GetWindHeight() or sth else Roll eyes | :rolleyes:

"The Ultimate Limit Is Only Your Imagination."

AnswerRe: How set the Form on the center of my screen ? Pin
ftbk11-Apr-08 23:57
ftbk11-Apr-08 23:57 
GeneralRe: How set the Form on the center of my screen ? Pin
Schehaider_Aymen12-Apr-08 0:08
Schehaider_Aymen12-Apr-08 0:08 
AnswerRe: How set the Form on the center of my screen ? Pin
Schehaider_Aymen12-Apr-08 0:41
Schehaider_Aymen12-Apr-08 0:41 
GeneralOnNewWindow2 multithread Pin
ftbk11-Apr-08 23:29
ftbk11-Apr-08 23:29 
Questionlogonuser returns 1314 Pin
vineeshV11-Apr-08 23:24
vineeshV11-Apr-08 23:24 
QuestionRe: logonuser returns 1314 Pin
David Crow24-Apr-08 10:43
David Crow24-Apr-08 10:43 
Generalwhich design is better to wrap another class instance Pin
George_George11-Apr-08 22:54
George_George11-Apr-08 22:54 
GeneralRe: which design is better to wrap another class instance Pin
Cedric Moonen11-Apr-08 23:49
Cedric Moonen11-Apr-08 23:49 
GeneralRe: which design is better to wrap another class instance Pin
George_George11-Apr-08 23:51
George_George11-Apr-08 23:51 
GeneralRe: which design is better to wrap another class instance Pin
Cedric Moonen12-Apr-08 1:20
Cedric Moonen12-Apr-08 1:20 
GeneralRe: which design is better to wrap another class instance Pin
George_George12-Apr-08 1:23
George_George12-Apr-08 1:23 
GeneralRe: which design is better to wrap another class instance Pin
CPallini12-Apr-08 1:48
mveCPallini12-Apr-08 1:48 
GeneralRe: which design is better to wrap another class instance Pin
George_George12-Apr-08 1:56
George_George12-Apr-08 1:56 
GeneralRe: which design is better to wrap another class instance Pin
CPallini12-Apr-08 2:33
mveCPallini12-Apr-08 2:33 
GeneralRe: which design is better to wrap another class instance Pin
George_George12-Apr-08 3:46
George_George12-Apr-08 3:46 
GeneralRe: which design is better to wrap another class instance Pin
Blake Miller14-Apr-08 5:56
Blake Miller14-Apr-08 5:56 
GeneralRe: which design is better to wrap another class instance Pin
George_George14-Apr-08 22:41
George_George14-Apr-08 22:41 

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.