Click here to Skip to main content
16,007,126 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionPE File Format differs by 16 Bytes in RVA of Import Directory Structure Section in Header... Pin
sundareswaran.senthilvel7-Sep-07 1:29
professionalsundareswaran.senthilvel7-Sep-07 1:29 
AnswerRe: PE File Format differs by 16 Bytes in RVA of Import Directory Structure Section in Header... Pin
Matthew Faithfull7-Sep-07 3:55
Matthew Faithfull7-Sep-07 3:55 
GeneralRe: PE File Format differs by 16 Bytes in RVA of Import Directory Structure Section in Header... Pin
sundareswaran.senthilvel9-Sep-07 20:12
professionalsundareswaran.senthilvel9-Sep-07 20:12 
GeneralRe: PE File Format differs by 16 Bytes in RVA of Import Directory Structure Section in Header... Pin
sundareswaran.senthilvel20-Sep-07 21:44
professionalsundareswaran.senthilvel20-Sep-07 21:44 
QuestionCo-ordinates of buttons Pin
69 Bay7-Sep-07 1:17
69 Bay7-Sep-07 1:17 
AnswerRe: Co-ordinates of buttons Pin
Nishad S7-Sep-07 1:39
Nishad S7-Sep-07 1:39 
GeneralRe: Co-ordinates of buttons Pin
69 Bay7-Sep-07 3:25
69 Bay7-Sep-07 3:25 
GeneralRe: Co-ordinates of buttons Pin
Mark Salsbery7-Sep-07 5:51
Mark Salsbery7-Sep-07 5:51 
In the resource, the units are dialog units (DLUs).

From the docs:
"A DLU is based on the size of the dialog box font, normally 8-point MS Sans Serif.
A horizontal DLU is the average width of the dialog box font divided by four. A vertical
DLU is the average height of the font divided by eight.
"

For an example of how to convert DLUs to pixels, you may want to check out the
_AfxConvertDialogUnitsToPixels() function in the MFC source code or the
ConvertDialogUnitsToPixels()  method in the ATL _DialogSizeHelper class.

Mark



Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: Co-ordinates of buttons Pin
Nishad S8-Sep-07 0:40
Nishad S8-Sep-07 0:40 
Questionfatal error C1853: in vc6 Pin
prakashd7-Sep-07 0:32
prakashd7-Sep-07 0:32 
AnswerRe: fatal error C1853: in vc6 Pin
Naveen7-Sep-07 0:40
Naveen7-Sep-07 0:40 
GeneralRe: fatal error C1853: in vc6 Pin
jhwurmbach7-Sep-07 1:39
jhwurmbach7-Sep-07 1:39 
AnswerRe: fatal error C1853: in vc6 Pin
jhwurmbach7-Sep-07 1:42
jhwurmbach7-Sep-07 1:42 
GeneralRe: fatal error C1853: in vc6 Pin
prakashd12-Sep-07 3:04
prakashd12-Sep-07 3:04 
GeneralRe: fatal error C1853: in vc6 Pin
jhwurmbach12-Sep-07 3:26
jhwurmbach12-Sep-07 3:26 
GeneralRe: fatal error C1853: in vc6 Pin
prakashd17-Sep-07 4:56
prakashd17-Sep-07 4:56 
AnswerRe: fatal error C1853: in vc6 Pin
KaЯl7-Sep-07 2:10
KaЯl7-Sep-07 2:10 
QuestionIStream and XmlLite Pin
Jan S.6-Sep-07 23:10
Jan S.6-Sep-07 23:10 
AnswerRe: IStream and XmlLite Pin
George L. Jackson7-Sep-07 3:10
George L. Jackson7-Sep-07 3:10 
GeneralRe: IStream and XmlLite Pin
Jan S.7-Sep-07 3:51
Jan S.7-Sep-07 3:51 
QuestionOLE Viewer Pin
George_George6-Sep-07 22:40
George_George6-Sep-07 22:40 
QuestionWhere do I write questions in C? Pin
gizmokaka6-Sep-07 22:29
gizmokaka6-Sep-07 22:29 
GeneralRe: Where do I write questions in C? Pin
Maxwell Chen6-Sep-07 22:31
Maxwell Chen6-Sep-07 22:31 
AnswerRe: Where do I write questions in C? Pin
Nishad S6-Sep-07 22:33
Nishad S6-Sep-07 22:33 
AnswerRe: Where do I write questions in C? Pin
Hamid_RT6-Sep-07 23:43
Hamid_RT6-Sep-07 23:43 

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.