How to send the %CBN_SELENKOK notification message by progra

Started by Jean-Pierre LEROY, June 26, 2005, 08:13:54 AM

Previous topic - Next topic

Jean-Pierre LEROY

Hi,

I would like to simulate the %CBN_SELENDOK notification message that is sent by windows when the user selects a list item, or selects an item and then closes the list.

How can I send this messgae within my program to a combo-box ?

I have just try
SendMessage(HWND_MAINWINDOW_COMBO1 , %CBN_SELENDOK, %TRUE, %TRUE)
... without any success.

Thank you for your help.
Jean-Pierre

TechSupport

That notification is sent through the WM_COMMAND message:


SendMessage hWndForm, %WM_COMMAND, MakLng(IDC_FORM1_COMBO1, %CBN_SELENDOK), HWND_FORM1_COMBO1

Jean-Pierre LEROY

Hi Paul,

Thank you very much for your help ... %CBN_SELENDOK works very well now.

Jean-Pierre