Click here to Skip to main content
15,897,315 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Inno setup question Pin
YaronNir23-Mar-05 4:29
YaronNir23-Mar-05 4:29 
GeneralVideo/Audio Format Pin
Anonymous23-Mar-05 3:18
Anonymous23-Mar-05 3:18 
GeneralRe: Video/Audio Format Pin
David Crow23-Mar-05 3:31
David Crow23-Mar-05 3:31 
GeneralRe: Video/Audio Format Pin
Dragos1979200223-Mar-05 10:10
Dragos1979200223-Mar-05 10:10 
GeneralRe: Video/Audio Format Pin
David Crow23-Mar-05 10:24
David Crow23-Mar-05 10:24 
GeneralGetting a control's absolute position and size at runtime Pin
eJyo23-Mar-05 2:25
eJyo23-Mar-05 2:25 
GeneralRe: Getting a control's absolute position and size at runtime Pin
Ravi Bhavnani23-Mar-05 2:34
professionalRavi Bhavnani23-Mar-05 2:34 
GeneralRe: Getting a control's absolute position and size at runtime Pin
eJyo23-Mar-05 18:55
eJyo23-Mar-05 18:55 
1. We do pCtrlWnd->GetWindowRect(&rect); where pCtrlWnd is any control on the MFC UI.
2. Next we do m_pParentWnd->ScreenToClient(&rect); where m_pParentWnd is the parent window handle.
3. The rect so obtained contains position & size information about the control with respect to the client’s co-ordinate system.
4. We find that the values obtained in the previous point do not match with the control co-ordinates mentioned in the VC++ RC file (viz. GROUPBOX "Original",IDC_GPB_ORIGINAL,7,6,137,89 will give some changed values for the rect obtained in 3 for IDC_GPB_ORIGINAL).
5. We tried to use APIs like MapDialgRect & GetDialogBaseUnits to provide transformation to the co-ordinates obtained in 3, but still it does not match the values mentioned in the RC file. If the values obtained in 3 are inserted into the RC file after modifying the position by say 1 unit to the right, control position & size get grossly altered. We want to know the transformation required to write back such a value as in 3 to the RC file’s co-ordinate system.
QuestionHow to Move a image with Keys contol in Custom Static Control Pin
Ashok Dahal22-Mar-05 23:58
Ashok Dahal22-Mar-05 23:58 
AnswerRe: How to Move a image with Keys contol in Custom Static Control Pin
Mircea Puiu24-Mar-05 5:26
Mircea Puiu24-Mar-05 5:26 
GeneralCreating resources in Chinese Pin
Phil J Pearson22-Mar-05 23:52
Phil J Pearson22-Mar-05 23:52 
GeneralRe: Creating resources in Chinese Pin
David Crow23-Mar-05 3:17
David Crow23-Mar-05 3:17 
GeneralRe: Creating resources in Chinese Pin
Phil J Pearson23-Mar-05 3:38
Phil J Pearson23-Mar-05 3:38 
GeneralRe: Creating resources in Chinese Pin
Sheng Jiang 蒋晟23-Mar-05 5:24
Sheng Jiang 蒋晟23-Mar-05 5:24 
GeneralAdding scrollbars in custom static control Pin
Binsan22-Mar-05 23:33
Binsan22-Mar-05 23:33 
GeneralRe: Adding scrollbars in custom static control Pin
Monty223-Mar-05 2:21
Monty223-Mar-05 2:21 
GeneralSHA Encription Pin
Anand for every one22-Mar-05 23:05
Anand for every one22-Mar-05 23:05 
GeneralRe: SHA Encription Pin
Chris Losinger23-Mar-05 1:07
professionalChris Losinger23-Mar-05 1:07 
GeneralRe: SHA Encription Pin
Alexander M.,23-Mar-05 12:28
Alexander M.,23-Mar-05 12:28 
Generalprogram crushes!! Pin
mpapeo22-Mar-05 22:56
mpapeo22-Mar-05 22:56 
GeneralRe: program crushes!! Pin
Hans Ruck23-Mar-05 1:20
Hans Ruck23-Mar-05 1:20 
GeneralRe: program crushes!! Pin
mpapeo23-Mar-05 1:32
mpapeo23-Mar-05 1:32 
GeneralRe: program crushes!! Pin
Hans Ruck23-Mar-05 1:39
Hans Ruck23-Mar-05 1:39 
GeneralRe: program crushes!! Pin
mpapeo23-Mar-05 1:48
mpapeo23-Mar-05 1:48 
GeneralRe: program crushes!! Pin
Hans Ruck23-Mar-05 2:48
Hans Ruck23-Mar-05 2:48 

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.