PrimeMover Posted December 5, 2011 Share Posted December 5, 2011 I'm struggling with finding a way to define the focus of a UDF ListView object. I know how to set the focus of a ListViewItem, but not the entire ListView control itself. I have a "Select All" button in my interface, which selects all items in a ListView objects. Of course, every time you click outside of the ListView (like the button), it shifts the focus away from the control, but when choosing the "Select All" button, I want the focus to return. I can see how to do this with the built-in ListView commands, but for those I need the controller ID, which the UDF controls don't have. Conversely, I had to switch to UDF objects because of some other features missing from the built-in objects. Is there any way to create a GUI Control that can be accessed by both UDF and built-in commands? Or are they pretty much mutually incompatable? Link to comment Share on other sites More sharing options...
Andreik Posted December 7, 2011 Share Posted December 7, 2011 Why don't you use $LVS_SHOWSELALWAYS style? When the words fail... music speaks. Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted December 7, 2011 Share Posted December 7, 2011 ControlFocus() ?? .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now