The MASM Forum Archive 2004 to 2012

Project Support Forums => IDE Development and Support => RadAsm Support Forum => Topic started by: PauloH on March 18, 2008, 11:23:24 PM

Title: C structure members and Radasm
Post by: PauloH on March 18, 2008, 11:23:24 PM
Hello, KetilO.

I have a question: Does Radasm have auto completion for structure members in C language? I tried it and could note figure out how to do. I know that for .asm files this feature works 100% well. Thanks for your answer.

Paulo Henrique
Title: Re: C structure members and Radasm
Post by: KetilO on March 27, 2008, 03:51:04 PM
Hi

The support for structures is limitted and only supports globaly declared structures.

Example:

HEFONT hef;
LOGFONT lf;

BOOL CALLBACK DialogProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
// This Window Message is the heart of the dialog //
//================================================//
UINT lnr;
UINT cpl;
switch (message) // what are we doing ?
{
case WM_INITDIALOG:
{
RtlZeroMemory(&lf, sizeof(LOGFONT));
lf.lfHeight = -12;
lstrcpy( lf.lfFaceName, TEXT("Courier New"));
hef.hFont = CreateFontIndirect(&lf);
lf.lfHeight = -8;
lstrcpy(lf.lfFaceName, TEXT("Terminal"));
hef.hLnrFont = CreateFontIndirect(&lf);
SendDlgItemMessage(hWnd,IDC_RAH1,HEM_SETFONT,0,(LPARAM)&hef);
}
break;


KetilO