News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

RaGrid Problem

Started by Bros, July 27, 2006, 03:19:34 PM

Previous topic - Next topic

Bros

Hello

I have added a Ragrid in my project.

When I build my project, I have no error but when I execute it, the window never appear.

If I remove the Ragrid Compenent,  - Rebuild - Execute , the window is back again?

What can i do to see mly window with my Ragrid?

Shantanu Gadgil

Sounds very much like a "common control" problem!!!  :green :green

How about giving "InitCommonControls" a try?
OR
include the manifest thingy (XP themes enabling one)

EDIT:
I am not actually testing anything here myself, do let me know how/why things turn out!  :bg
To ret is human, to jmp divine!

Bros

Hello

Thanks for your answer but I have done a InitCommontControls.

start:
invoke InitCommonControls

invoke GetModuleHandle, NULL
mov    hInstance,eax


Xp theme is working very well... but no ragrid ...  :'(

Shantanu Gadgil

QuoteI have done a InitCommontControls
Cool!

This might sound silly, but how 'bout InitCommonControlsEx (with _ALL_ the styles enabled maybe?)
To ret is human, to jmp divine!

KetilO

Hi Bros

You must load the RAGrid.dll


start:

invoke GetModuleHandle,NULL
mov  hInstance,eax
invoke LoadLibrary,offset szRAGridDLL
.if eax
  mov  hRAGridDLL,eax
  invoke InitCommonControls
  invoke DialogBoxParam,hInstance,IDD_DIALOG1,NULL,addr DlgProc,NULL
  invoke FreeLibrary,hRAGridDLL
.endif
invoke ExitProcess,0


See the many RAGrid examples found on my website.

KetilO

Bros

Thanks a lot  :U :thumbu