Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to "notify" parent window about "scroll event" of child window "list box" control in WIN32 API?
    text
    copied!<p>How to <strong>"notify"</strong> the parent window about the <strong>"scroll event"</strong> of its child window, a <strong>"list box"</strong> control, each time it is scrolled up or down in <strong>WIN32 API</strong>?</p> <p>I am trying to make a <em>dictionary</em> using the <em>WIN32 API</em>. I created a <em>parent window</em>, and then created a child window <em>list box</em> control in it.</p> <p>I want to add <strong>"50 word lists"</strong> at a time to the list box control from the database, so that the application does not take time at all during the start up.</p> <p>And then, I want to keep a track of the <strong>"scroll bar position"</strong> (the <strong>"SCROLLINFO"</strong> structure's <strong>"nPos"</strong> value) of the list box control as the user scrolls up or down the word lists, so that I can call a function that adds 50 more words at the end of the list box when it has been almost scrolled up to the bottom.</p> <p>In the <strong>main window procedure</strong> function, inside the <strong>"switch"</strong> statement I used the <strong>"WM_VSCROLL"</strong> window message hoping to catch the child window list box control’s scroll event. The child window list box control has <strong>"LBS_NOTIFY"</strong> style. But all in vain! The list box control’s scroll event is not being notified to its parent window. The parent window also is not doing anything in the <strong>"WM_VSCROLL"</strong> message for its child window list box control’s scroll event.</p> <p>Please kindly help me, guide me, show me with code examples how to <strong>"notify"</strong> the parent window about the <strong>"scroll event"</strong> of its child window, a <strong>"list box"</strong> control, each time it is scrolled up or down in WIN32 API.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload