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

C / C++ / MFC

 
QuestionHow to get mouse location in openGL Pin
Mohamed_Khalil23-Oct-10 1:55
Mohamed_Khalil23-Oct-10 1:55 
QuestionChanging the location of a CFileDialog. Pin
rentzk22-Oct-10 15:45
rentzk22-Oct-10 15:45 
AnswerRe: Changing the location of a CFileDialog. Pin
rp_suman22-Oct-10 22:10
rp_suman22-Oct-10 22:10 
AnswerRe: Changing the location of a CFileDialog. Pin
Richard MacCutchan22-Oct-10 22:47
mveRichard MacCutchan22-Oct-10 22:47 
GeneralRe: Changing the location of a CFileDialog. Pin
rentzk23-Oct-10 17:43
rentzk23-Oct-10 17:43 
GeneralRe: Changing the location of a CFileDialog. Pin
Richard MacCutchan23-Oct-10 21:31
mveRichard MacCutchan23-Oct-10 21:31 
GeneralRe: Changing the location of a CFileDialog. Pin
rentzk24-Oct-10 17:56
rentzk24-Oct-10 17:56 
GeneralRe: Changing the location of a CFileDialog. Pin
Richard MacCutchan24-Oct-10 22:24
mveRichard MacCutchan24-Oct-10 22:24 
rentzk wrote:
These articles mention the need to get the parent in order to access the various buttons on the dialog and change it's size.


That does not sound correct, all dialog controls are children of the dialog window not its parent. Perhaps you would be better to create your own dialog which is derived from CFileDialog; see here[^] for further information.

rentzk wrote:
When I try to get the window rect directly, the returned value indicates a box of zero size, while the parent call returns legitimate values.


Unfortunately I cannot reproduce this eactly as I do not have MFC on my system. However when I tried a similar test via a Win32 application I was able to get the size and position of my dialog, and move it to a different point on the screen independent of its parent. That would suggest to me that the same is possible with an MFC class dialog.

rentzk wrote:
Likewise, CallingSetWindowPos with on the parent actually moves the window (not off of the screen, unfortunately), but also adjusts it's size.


And so it should, SetWindowPos should work for any window.
Just say 'NO' to evaluated arguments for diadic functions! Ash

GeneralFound the problem Pin
rentzk25-Oct-10 7:38
rentzk25-Oct-10 7:38 
GeneralProject type for remote file access Pin
seifwen22-Oct-10 10:25
seifwen22-Oct-10 10:25 
GeneralRe: Project type for remote file access Pin
Moak22-Oct-10 10:37
Moak22-Oct-10 10:37 
GeneralRe: Project type for remote file access Pin
seifwen22-Oct-10 11:29
seifwen22-Oct-10 11:29 
GeneralRe: Project type for remote file access Pin
Moak23-Oct-10 2:06
Moak23-Oct-10 2:06 
GeneralRe: Project type for remote file access Pin
seifwen23-Oct-10 3:57
seifwen23-Oct-10 3:57 
QuestionEnable lan connection for win7 using INetConnection Pin
manojsaxena_mca22-Oct-10 2:31
manojsaxena_mca22-Oct-10 2:31 
JokeRe: Enable lan connection for win7 using INetConnection Pin
josda100022-Oct-10 6:42
josda100022-Oct-10 6:42 
GeneralRe: Enable lan connection for win7 using INetConnection Pin
manojsaxena_mca24-Oct-10 21:29
manojsaxena_mca24-Oct-10 21:29 
AnswerRe: Enable lan connection for win7 using INetConnection Pin
krmed22-Oct-10 7:11
krmed22-Oct-10 7:11 
GeneralRe: Enable lan connection for win7 using INetConnection Pin
manojsaxena_mca24-Oct-10 21:02
manojsaxena_mca24-Oct-10 21:02 
GeneralRe: Enable lan connection for win7 using INetConnection Pin
krmed25-Oct-10 0:36
krmed25-Oct-10 0:36 
AnswerRe: Enable lan connection for win7 using INetConnection Pin
Richard MacCutchan22-Oct-10 23:01
mveRichard MacCutchan22-Oct-10 23:01 
GeneralRe: Enable lan connection for win7 using INetConnection Pin
manojsaxena_mca24-Oct-10 21:26
manojsaxena_mca24-Oct-10 21:26 
GeneralRe: Enable lan connection for win7 using INetConnection Pin
Richard MacCutchan24-Oct-10 22:33
mveRichard MacCutchan24-Oct-10 22:33 
GeneralRe: Enable lan connection for win7 using INetConnection Pin
manojsaxena_mca24-Oct-10 23:18
manojsaxena_mca24-Oct-10 23:18 
GeneralRe: Enable lan connection for win7 using INetConnection Pin
Richard MacCutchan25-Oct-10 0:26
mveRichard MacCutchan25-Oct-10 0:26 

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.