473,763 Members | 9,161 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

RBN_AUTOBREAK help request

I'd like to be able to use this message (RBN_AUTOBREAK) with my rebar control in Windows XP, and I just can't seem to get there. The application I'm working on is a .dll that is loaded by another application.

To start with, the RBN_AUTOBREAK definition in commctrl.h is surrounded by an "#if (_WIN32_WINNT >= 0x0501)". Unfortunately, this is not defined for my application, which includes only windows.h, and commctrl.h! I can just define _WIN32_WINNT as 0x0501 myself, but I'm unsure what other consequences that will have -- there should be a better way. It's also defined in stdafx.h. Unfortunately, I can't use any of the MFC stuff in my DLL, because it requires OLE, and I can't initialise OLE in a DLL (see help for AfxOleInit function). There's also one (_WIN32_WINNT) in winresrc.h -- maybe I should use that. Whatever I need is certainly undocumented in the RBN_AUTOBREAK help, where IMHO, it should be.

Now, beyond that (and assuming I fake the definition of RBN_AUTOBREAK myself), I'm just not getting the RBN_AUTOBREAK notification. According to the MSDN help page on RBN_AUTOBREAK, you need to declare that you want to use common controls verson 6 in a manifest -- so this is probably the issue. I honestly have no idea what version I'm using now, nor do I know how to find out.

Trying to look into that, I look at the help on "Using Windows XP Visual Styles" (I don't actually want to use Win XP Visual Styles, just RBN_AUTOBREAK, but the RBN_AUTOBREAK help points here!), which very nicely has a section called "Using ComCtl32 Version 6 in an Application That Uses Extensions, Plug-ins, or a DLL That Is Brought into a Process". Whee! So far so good!

Only, I really am stumped by the last step (5), which says "Add the manifest to your application's resource file as follows: ". Which windows resource file am I supposed to add this to? My .rc file? I should just go in and manually edit that? Or my resource.h file? Tried that -- it wouldn't compile, unsurprisingly. The line they are asking me to add is "MANIFEST_RESOU RCE_ID RT_MANIFEST "YourApp.manife st"
", which parses out to: "2 MAKEINTRESOURCE (24) "YourApp.manife st", which is certainly not valid C/C++ in any form I know.

Maybe the documentation is wrong? Maybe I'm going crazy? Help! I just want to get the RBN_AUTOBREAK message from my rebar control!
Nov 17 '05 #1
1 1049
"Kaye" <ka**@mailinato r.com> wrote in message
news:21******** *************** ***********@mic rosoft.com...
To start with, the RBN_AUTOBREAK definition in commctrl.h
is surrounded by an "#if (_WIN32_WINNT >= 0x0501)".
Unfortunately, this is not defined for my application, which
includes only windows.h, and commctrl.h! I can just define
_WIN32_WINNT as 0x0501 myself, but I'm unsure what
other consequences that will have -- there should be a
better way.
:-) RBN_AUTOBREAK requires at least Windows XP (aka NT v5.1). Now if you can
be sure that your application will never run on an earlier platform you can
either define the token or set it in the IDE.
Only, I really am stumped by the last step (5), which says
"Add the manifest to your application's resource file as follows: ".


If no one responds her you will want to post UI questions in this group:

microsoft.publi c.win32.program mer.ui

Regards,
Will
Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
10336
by: Christopher Brandsdal | last post by:
Hi! I get an error when I run my code Is there any other way to get te information from my form? Heres the error I get and the code beneath. Line 120 is market with ''''''''''''Line 120''''''''''''''''''''' ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
4
2883
by: SP | last post by:
Hi I have a problem with a customer's XML being submitting to me in a non-well-format XML. They said that there are 18 other partners who has been able to tweak the XML to make it work. So I guess here is my question, in ASP, when working with XML, how do you handle non-well-formed XML documents on the "listener" response side? Here's the scenerio: Customer post XML Data to us (non-well-formed XML)
7
4146
by: Shapiro | last post by:
I have a scenario where I log a resquest to a database table and update the request with a corresponding response including the response time. I am using an HttpModule to do this. My challenge is how to corelate the response to a corresponding request. I am looking for a sure proof threadsafe way to corelate a response to a coresponding request message. Two things that concerns me:-
5
20084
by: dougwig | last post by:
I'm trying to handle the scenario where a user's session times out and and their ajax request triggers a redirection by the webserver (302 error?). I'm using Prototype 1.4 and the my works great with Firefox,but with IE6 the onFailure never gets called and the request never completes. My code: var ajaxReq = new Ajax.Request( url, {method: 'post', parameters:
4
3768
by: Michael Kujawa | last post by:
I am using the following to create an SQL statement using the names and values from request.form. The loop goes through each item in request.form The issue comes in having an additional "and" at the end of the loop and the value of x3 as not all options may be selected from the form yet the loop goes through the entire request.form list I have to add addtional code to strip off the last "and" and was wondering if there is a way to...
6
4982
by: santhoskumara | last post by:
How to request to servlet from Ajax and also I got the DOM object in the servlet through Business Logic. Now how will i pass the DOM object from serlvet to Clientside. Where in the client Side i am using Ajax. kindly advice me.
2
6308
by: MDANH2002 | last post by:
Hi From VB.NET I want to simulate the POST request of the following HTML form <html> <title>HTTP Post Testing</title> <body> <form action=http://www.example.com/postdata enctype="multipart/form-data" method="post" name="testform">
5
6135
by: chromis | last post by:
Hi there, I've recently been updating a site to use locking on application level variables, and I am trying to use a commonly used method which copies the application struct into the request scope. Application variables are then accessed in this manner Request.App.<Var>. To begin with I had a simple functioning login system inside a subdirectory named admin, this subdirectory had it's own application.cfm, I wasn't sure whether to duplicate...
3
1769
by: Joseph Geretz | last post by:
I'm using the Request Filter documentation which can be found here: http://msdn.microsoft.com/en-us/library/system.web.httprequest.filter.aspx In this example, two filters are installed, one filter uppercases every alphabetic character and then the second filter replaces every 'E' with "#'. OK, very nice. What's trivial about these examples is that the returned string is exactly the same length as the string which is actually read...
0
9387
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10148
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9823
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7368
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5270
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5406
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3917
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3528
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2794
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.