Win32api: How to send a Struct in DialogBox?

Marcone marcone at email.com
Wed Oct 14 00:00:51 UTC 2020


DialogBoxParam receive need "int". How convert struct object 
reference to int and cast to struct type after?

I will cast using:

Teste * params = cast(Teste*) LOWORD(lParam);

writeln(params.nome);
writeln(params.idade);


But here, how can send struct?

DialogBoxParam(null, MAKEINTRESOURCE(IDD_DIALOG1), null, 
&DlgMain, &test); // Error, need "int" but I am sending Test*







More information about the Digitalmars-d-learn mailing list