WinAPI ListBox with LBS_NODATA style doesn't work as it expected

Hello, i used this code to create owner drawn listbox.
this->hListBox= CreateWindowEx(WS_EX_CLIENTEDGE
, L"LISTBOX", NULL
, WS_CHILD | WS_VISIBLE |LBS_OWNERDRAWFIXED|LBS_NODATA
, 0, 0, this->Height, this->Width
, this->hWnd, NULL, this->hInstance, NULL);
When it's being initialized, my wndproc recieves WM_MEASUREITEM message, it works fine. But when i'm sending LB_SETCOUNT message, the actual item count doen't change. Also, the WM_DRAWITEM message being sent only when i click the listbox, so no items being
drawn after initialization

Hi,
That is what I thougth as well. According the manual you can use an expresion, column, constant or bind variable for N.
N determines the nth row for which the measure value is to be returned. n can be a
constant, bind variable, column, or an expression involving them, as long as it
resolves to a positive integer. The function returns NULL if the data source window
has fewer than n rows. If n is null, then the function returns an error.
Regards,
Peter

Similar Messages

  • Why tethering with USB cable doesn't work after IOS6.0 update?

    why tethering with USB cable doesn't work after IOS 6.0 update?

    Try updating the carrier settings, if that doesn't do it try following along with this Apple doc -> iOS: Troubleshooting Personal Hotspot

  • ITunes 10.4 full screen with Win7-64bit doesn't work correctly.

    iTunes 10.4 full screen with Win7-64 doesn't work correctly. I have the Windows taskbar on the left side of my screen. Maximized iTunes is panned to the left.

    Same issue here. When the Windows taskbar is position on the top of the screen and then the iTunes windows is maximised, it's position is as if the Windows taskbar is at the bottom of the screen so the top of the iTunes window sits under the taskbar.
    For those wanting a workaround, hold shift and right click the iTunes icon in the taskbar/quick launch bar and click restore, at least then you can adjust it to be full screen manually.
    System:
    Windows 7 Ultimate x64
    iTunes 10.4
    ATI 5750 video card

  • LAN with TCP/IP doesn't work

    Hello,
      I have a problem with my laptop IdeaPad S10e 4187-5PG: LAN with TCP/IP doesn't work, after I have updated all the drivers to the latest ones form the Lenovo site (except BIOS update). I tried to check if LAN worksby sending a ping to the IP address and that is OK, but when Isend a ping to the default gateway it failes. A ping to the DNS server also fails.Could you please help me because I tried everythinh and I can't getthe LAN to work.
    Thank you very much

    Perhaps you could describe you network in a little more detail.
    Is this a Workgroup home network or are you connected to a Domain server?
    If this is a workgroup are you connecting to the internet via a cable or DSL router?
    Do other computers on your network connect OK?
    Has your S10e ever worked properly on the network?
    Are you connecting via a wireless access point or LAN cable? 
    What do you Ping on and from where?
    Can you Ping OK on another networked computer?
    Open up a DOS Prompt (aka command prompt, DOS Box). and type IPCONFIG  /ALL <enter>. Do you get a compatible IP address and subnet mask? You should also get the gateway IP address.

  • In day 4, video # Creating "pages" with Flex states doesn't work

    i can't open video training http://www.adobe.com/devnet/flex/videotraining in day 4. it's name( Creating "pages" with Flex states ) doesn't work, it report error. supporter can look it and solve problem

    Hi,
         I'm also pacing the same issue. if click on the video in the Day 4 exercises. i don't know, what is the issue with that particular videos. and also pacing one more issue that design mode is not showing in my flash builder 4. if u have any ans plz help me out. PFA

  • Every Programme that it is opened with Adobe Reader doesn't work What Can I do ?

    Every Programme that it is opened with Adobe Reader doesn't work What Can I do ?

    More information please.
    Version of Reader? OS?  Can you open reader by double-clicking on its icon? Can you open reader by double-clicking on a pdf file? What programs are trying to open reader? Some programs might be restricting your ability to view pdf files using the Reader plug-in due to security concerns. If this is the case you need to find out how to enable the plug-in in the case of each application.

  • Comcast came to fix my internet. My AIRPORTWIFI now only works with desktop. it doesn't work with my IPhone or IPad. Why? What can I do?

    Comcast came to fix my internet. My AIRPORTWIFI now only works with desktop. it doesn't work with my IPhone or IPad. Why? What can I do?

    Hello lila54,
    It sounds like your Wi-Fi network is working if your desktop works with it, we just need to get the Wi-Fi on your iPhone and iPad connected to it.  I found a couple of resources to help with not being able to connect to Wi-Fi on an iOS device.
    I recommend following the steps in this tutorial first (the steps should work on the iPhone and iPad):
    Join a network
    http://www.apple.com/support/iphone/assistant/wifi/
    If you are still having trouble connecting to Wi-Fi, follow the steps in this article (you can skip any steps you have already taken):
    iOS: Troubleshooting Wi-Fi networks and connections
    http://support.apple.com/kb/ts1398
    Thank you for posting in the Apple Support Communities. 
    Best,
    Sheila M.

  • Hover table row style doesn't work in IE

    I found a great way to create a rollover effect when you
    hover over a table row, by giving the row a class of "resultsRow"
    and using the following rules in my stylesheet:
    .resultsRow {
    background-color: #EAEEB1;
    .resultsRow:hover {
    background-color: #D2DE56;
    This works perfectly in Firefox, but doesn't work at all in
    Internet Explorer, which is what most of our audience will be
    using. Does anyone know a fix for this in Internet Explorer?

    On Thu, 20 Jul 2006 08:21:43 +0000 (UTC), "Claire S"
    <[email protected]> wrote:
    > .resultsRow {
    > background-color: #EAEEB1;
    > }
    > .resultsRow:hover {
    > background-color: #D2DE56;
    > }
    >
    > This works perfectly in Firefox, but doesn't work at all
    in Internet Explorer,
    >which is what most of our audience will be using. Does
    anyone know a fix for
    >this in Internet Explorer?
    As you've seen, IE is ancient and doesn't support it. You can
    do it
    pretty easily with JavaScript:
    <style type="text/css">
    .resultsRow {
    background-color: #EAEEB1;
    .resultsHover {
    background-color: #D2DE56;
    </style>
    <tr class="resultsRow"
    onMouseOver="this.className='resultsHover'"
    onMouseOut="this.className='resultsRow'">
    Gary

  • Deleting songs on ZEN X-Fi Style doesn't work

    Hello!
    I got a ZEN X-Fi Style 16GB which worked perfect until like 2 months ago. My problem is, if I delete a track on a player using the player (not PC), "menu -> Remove... -> Remove Track", it shows that the number of tracks decreased, BUT if I connect the player to my PC, the track is still there AND if I go to "All Tracks", I see there the old number of tracks with that one I deleted earlier.
    The tech. support couldn't help me. What I tried:
    - format the player using windows explorer
    - format the player using it's recovery mode (command "format all") - this just deletes everything but doesn't solve the problem
    - clean the player using it's recovery mode after "deleting" some tracks (command "clean-up")
    - remove the write protection on tracks using windows explorer: the player set it again during it's "rebuilding" procedure after disconnecting it from the computer
    - use the Creative Centrale to upload tracks to the player instead of just copy it to the player using windows explorer.
    - reinstall the firmware (I already had the newest firmware installed)
    - google for it, search this forum, search the knowledge base
    - the tech. support suggested downloading a recovery software http://www.creative.com/products/mp3...ol/welcome.asp but I think my player is not supported by the software because after choosing my player I am being redirected to the player's page which doesn't contain such programs.
    some facts:
    - tracks are MP3, no DRM protection
    - OS: Windows 7 x64
    - I play it over "All tracks", no playlists or something like that
    Any idea what else could I try? This feature (deleting tracks on player) is very important to me.
    I do very appreciate your help.
    Thank you!
    Kind regards
    Kyfe

    This is really a bad issue. I think unless you are in the warranty period please change it once again and more over please if possible perform the deleting task over there
    God never made his work for man to mend vmware_happy.gif

  • Cursor style doesn't work on web forms

    Hi All,
    I have a FORM (6i) from which I run the report by clicking a button .
    I used to set_application_property to set cursor style to BUSY untill I get report output . It works in client/server but doesn't work in Web .
    Can I set this in any other way or is there any way we can show a progress bar in web FORMS without using ActiveX ? .
    Thanks in Advance,
    Sampath

    Hi Duncan,
    Thank you for your update . I didn't get "try a call to synchronize "
    in your note did you want me to run the report in Synchronous mode ?
    Thanks,
    Sampath
    Cursor Style does work on the Web (at least in 6i, there was an old bug in 4.5) - you shouldn't have to but try a call to synchronize after the set_application_property call.

  • HT1688 The friend brought to me from the USA iphone 4. I can't use it at all. It with our operators doesn't work. I very much ask you help me to solve a problem.

    The friend brought to me a gift from the USA, and it doesn't work year. Our operators don't understand it. Help me to unblock iphone4
    <Edited by Host>

    This has nothing to do with iPhones in the Enterprise.
    Sounds like your friend is a bit dumb and bought a carrier locked iPhone.  The only way to address this is to contact the carrier to whom the device is locked and find out their unlock policy.
    Oh, and stop being dumb yourself, posting IMEI, serial numbers, and email addresses on a public forum is just plain stupid.

  • Forgot my adminpassword, i have tried the reboot with initial disk doesn't work i can't downlad anything, I am able to log on but the name and password to get in my computer doesn't work for admin password. i am about to give up any suggestions?macbook10

    forgot my adminpassword, i have tried the reboot with initial disk didn't work, i am able to get into my computer with name and password, but this same name and password doesn't work as an administrators password when i want to download or change things.
    do you have any suggestions? Im about to give up, i can't even access wireless have to use a dsl
    pretty sad

    ... this same name and password doesn't work as an administrators password when i want to download or change things.
    It's probably that your Keychain password is not the same as your login password. If you configured your computer to log you in automatically, you may not have used your login password in so long you forgot it.
    There is no way to retrieve the "login" Keychain password, but you can reset the Keychain from the Preferences menu: select it in the Keychain Access menu and select "Reset My Default Keychain". This will create a new, empty Keychain but the old one will be saved should you ever remember its password.
    The result of this is that you will have to supply passwords for everything that requires it, since without your Keychain they will no longer automatically fill themselves. However, once you supply them and store them in your new Keychain, they will be remembered.

  • Apple Keyboard with number pad doesn't work with Mac Pro?

    I have a Mac Pro, and have used an Apple Keyboard with a number pad (not bluetooth) with it for quite a while, with no problems. But then my keyboard broke and I ordered a replacement Apple Keyboard with a number pad (not bluetooth). This keyboard doesn't work with my Mac Pro. I have it plugged in, but I can't get the Mac Pro to consistently recognize that there is a USB keyboard connected to it. What magical stuff do I have to do to get the keyboard to be fit for purpose?

    It would not hurt to try an SMC Reset. (But if it does not help, it adds credence to lllaass assertion that the keyboard is not working.)
    Intel-based Macs: Resetting the System Management Controller (SMC) - Apple Support

  • Change user's OU with punctuation mark doesn't work by Rename User View

    Hi,
    I have problem with moving user between OU by Rename User View when punctuation mark in name of OU is used.
    I have own WF that assign user to specific OU depending on value of Select component. When value of this component is changed (against previous value) I call Rename View, that assign user to new OU. For OU without punctuation mark Rename View works OK.
    After finishing WF with punctuation mark in OU this Error appers:
    java.lang.RuntimeException: There is no such object on the server.
    But creating new AD account (by role assignment) in OU with punctuation work OK. In select component is rule that replace puctional character in correct form.
    Select component:
    <Field name='slctOrganizationalUnitUzivatele'>
                    <Display class='Select' action='true'>
                        <Property name='title' value='Nastavte organizacni jednotku:'/>
                        <Property name='allowedValues'>
                            <block>
                                <dolist name='zmena'>                             
                                    <invoke name='listResourceObjects' class='com.waveset.ui.FormUtil'>
                                        <invoke class='com.waveset.session.SessionFactory' name='getServerInternalContext' />
                                        <s>OrganizationalUnit</s>
                                        <s>AD</s>
                                        <null/>
                                        <s>false</s>
                                    </invoke>
                                     <rule name="RUL nahrada znaku">
                                        <argument name="inputString">
                                            <ref>zmena</ref>
                                        </argument>
                                        <argument name='hledanyRetezec'>
                                            <s>\,</s>
                                        </argument>
                                        <argument name='nahrazovaciRetezec'>
                                            <s>\, </s>
                                        </argument>
                                    </rule>                              
                                 </dolist>
                            </block>
                        </Property>
                        <Property name='sorted'>
                            <Boolean>true</Boolean>
                        </Property>
                    </Display>
                    <Default>
                        <upcase>
                            <ref>user.accounts[AD].ad_container</ref>
                        </upcase>
                    </Default>
                </Field>
    WF-Rename User
    <Activity id='10' name='renameUzivatele'>
            <Action id='0' application='com.waveset.session.WorkflowServices'>
              <Argument name='op' value='checkoutView'/>
              <Argument name='type' value='RenameUser'/>
              <Argument name='id' value='$(user.waveset.accountId)'/>
              <Argument name='authorized' value='true'/>
              <Return from='WF_ACTION_ERROR' to='error'/>
              <Return from='view' to='renameView'/>
            </Action>
            <Action id='1'>
              <expression>
                <block>
                  <set name='renameView.accounts[AD].identity'>
                    <ref>newDNrecord</ref>
                  </set>
                  <set name='renameView.resourceAccounts.currentResourceAccounts[AD].identity'>
                    <ref>newDNrecord</ref>
                  </set>
                  <set name='renameView.resourceAccounts.currentResourceAccounts[AD].selected'>
                    <s>true</s>
                  </set>
                  <set name='user.global.OrganizationalUnit'>
                    <ref>slctOrganizationalUnitUzivatele</ref>
                  </set>             
                </block>
              </expression>
            </Action>
            <Action id='2' application='com.waveset.session.WorkflowServices'>
              <Argument name='op' value='checkinView'/>
              <Argument name='view' value='$(renameView)'/>
              <Argument name='authorized' value='true'/>
            </Action>
            <Transition to='nastaveniPristupu-overeni'/>
            <WorkflowEditor x='193' y='343'/>
          </Activity>
    <set name='newDNrecord'>
                    <concat>
                      <s>CN=</s>
                      <ref>user.global.fullname</ref>
                      <s>,</s>
                      <ref>slctOrganizationalUnitUzivatele</ref>
                    </concat>
                  </set>Do you have any ideas?
    Thanks Petr

    Hi,
    I discovered following:
    - if name of OU in AD is without space (e.g. test,sample) so DN record is test\,sample and user is moved into this OU.
    - if name of OU in AD is with space (e.g. test, sample) so DN record is still test\,sample and user isn't moved.
    So problem is with empty space. How can I preserve space in DN name? I found something in documentation but I doesn't work for me.
    +Special Characters in FieldValues
    If you have a field value with a comma (,) or double quote (") character, or you want to preserve leading or trailing spaces, you must embed your field value within a pair of double quotes ("field_value"). You then need to replace double quotes in the field value with two double quote (") characters. For example, "John ""Johnny"" Smith" results in a field value of John "Johnny" Smith. +
    (from IDM Business Administrator's Guide, p.77)
    Guided this information I put value of slctOrganizationalUnitUzivatele into "". But this didn't work. Is good idea to have space in DN?
    Thanks for help.
    Petr
    Edited by: petrklinkovsky on Sep 10, 2009 5:06 AM

  • Filter Web Template with URL Cmd: doesn't work with compound infoobject ?

    Hello all,
    I've to filter the query contained on a web template with URL command, but it doesn't work.
    The web template contains only one query, and on the free chars I have 0PLANT.
    I call the web template adding to the normal url the following command:
    &FILTER_IOBJNM=0PLANT&FILTER_VALUE=33
    where 33 is the code of the plant I want to filter.
    The command is executed, I think, because the  result is "NO APPLICABLE DATA FOUND". The fact is that when I execute this query on the Bex filtering 0PLANT by value 33 the data exists.
    May be because 0PLANT on our system is in compound with 0SOURSYSTEM ? In this case, what's the value I can use as filter ?
    Thank's in advance,
    Max

    Hi,
    please see http://help.sap.com/saphelp_nw04/helpdata/en/59/edfe395dd76846e10000000a114084/frameset.htm
    especially:
    If the variant with ending 'EXT' is selected, the fully compounded value has to be entered in the external format, for example, 24.12.2000.
    If the ending 'EXT' is not used, the fully compounded value has to be entered in the internal format, for example, 20001224 for 24.12.2000.
    and
    In the internal display (see table below) you can easily determine the name of the characteristic and the filter value using the URL parameter &snippet_operations=%20 (see also Object Tag for the Properties of Web Templates). Call the Web application with this URL parameter. If you filter using the context menu, the parameters FILTER_IOBJNM and FILTER_VALUE are automatically added to the URL in the Web browser. You can then use the desired values with Command URLs in hyperlinks.
    Heike

Maybe you are looking for

  • Re: Portege M800 - can't get bluetooth installed in Windows 7

    Hi, I have a portege M800 PPM81C-07602D. It came with windows vista but I have reinstalled it to windows 7, and now I can't get the bluetooth drivers to install. I've tried the old vista drivers as well as the newer windows 7 drivers, but whenever I

  • Microsoft outlook webapp fails to open error X-OWA-Error

    A number of my users are getting the following error when trying to use the latest Office365 update X-OWA-Error: ClientError;exMsg=Script error.;file=https://r4.res.outlook.com/owa/15.0.745.25/owa2/scripts/boot.1.mouse.js:0 X-OWA-Version: 15.0.745.25

  • Web Services Usernames and Passwords in Axis

    Hi everyone, I have created a Web Service in Axis with SOAP and it is working fine. I have a remote client that connects to the WS and retrieves the Array of Complex types very seamlessly. The only problem that I have been battling with is that the a

  • "Get info" (command I) shortcut not working

    When using Finder (MacBookPro 10.5.5), if I try to use the keyboard shortcut of command-I to get info on a file, it doesn't work. Nothing happens. If I go through the menu, then it works fine. Other shortcuts, like open (command-O) still work. I've a

  • Limit records in business object

    Hi, I'm using oracle primavera Java API. How do I limit the records from the busness object. In oracle I used rownum for limit. Please let me know How to use oracle native query like count(),rownum etc.. in primavera API. Thanks Govindan P