C structure members and Radasm

Started by PauloH, March 18, 2008, 11:23:24 PM

Previous topic - Next topic

PauloH

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

KetilO

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