Hi all, I wonder if someone here can help me, I did not have much success on msdn forums with this question. I have the Microsoft's WebBrowser control embedded in my application and I am having trouble with the IDocHostUIHandler::GetHostInfo ( http://msdn.microsoft.com/en-us/library/aa753257(VS.85).aspx ) method. According to documentation, I should be able to pass a custom CSS file to the WebBrowser. And it works fine with IE6 and IE7, but it is ignored when IE8 is installed. Has anyone else encountered this behavior? Thanks for any suggestions. I even tried an example code from codeproject.com and added the css piece, but it did not worked. I'll be grateful for any idea. Have a nice day,:confused: Vlasta
Vlasta_
Posts
-
Troubles embedding IE8 WebBrowser control -
message loop + eventthanks for the responses, I'll try to put all the pieces together...
-
message loop + eventHello, I need to make a message loop that (also) ends when an event is signaled. I could probably do it myself, but I know messing with message ;) loops is a tricky thing. If you could point me to a resource, where someone has already done this and ironed out all the potential bugs, I'll be grateful. V.
-
Vista-like folder selection controlThank you (and also the other people, who have responded). Useful article.
-
Vista-like folder selection controlI do not want to start arguing about features of this control (I simply want to have it inside my application's file browser :) ), but the functionality of the Up button is there and it is smarter than before -> simply click on the name of any of the parent folders.
-
Vista-like folder selection controlHi all, if there is one thing I like about Vista, it is the control on top of each Explorer window showing me the path to current folder and allowing me to quickly change it. Has anyone tried to re-implement this folder selection control? Or is there a way to create this control using Windows shell libraries? Thanks for any suggestions, Vlasta
-
where is the type library for IDataObject ?Thanks, I may end with the IUnknown workaround, but I am still hoping to locate the tlb somwhere.
-
where is the type library for IDataObject ?Hello all, I know the experts on codeproject can deal with any of my sneaky questions... try this one: What .tlb is the definition of IDataObject in? Why do I need it: I have my own interface with IDataObject as an argument of one of its methods. The type library compiled from that .idl contains beside my own interface also IDataObject and a couple of others, which are referenced by it. As a consequence, the proxy for that interface is wrong and drag and drop stops functioning in my app :( . I tried to find a type library to put in importlib("") statement, but did not find it. There must be something obvious I am overlooking. Thanks for any advice
-
CreateDIBitmap with 32bits RGBA dataWith ImageList_Draw. Hm, "optimization" is not a good word. Older Windows did not support alpha at all and when the support was introduced, the functions were probably extended to handle it. But, I assume, due to compatibility issues someone decided to incorporate this "optimization" and when 32bit bitmap is used and it is completely transparent, it kicks in.
-
CreateDIBitmap with 32bits RGBA datayes, I was using ILC_COLOR32 and it worked correctly in all cases except when every pixels' alpha was 0. So the weird behavior only appeared in this single case, it was enough to change the alpha of the first pixel to 1 and it suddenly started to work as expected. That's why I was calling it "optimization" ;-). I believe it is worth mentioning somewhere in the documentation... something like: BTW, dear Windows user if you create completely transparent 32-bits bitmap, we will ignore the alpha channel.
-
CreateDIBitmap with 32bits RGBA datagdiplus could do it, but...it would increase the size of the installer too much for just this simple task. and who knows, maybe it will have the same problem ;-) (it is built upon the classic gdi, isn't it?) besides I like agg better for the vector stuff ...but thanks for the recommendation, it is a good advice, my needs are just a bit special.
-
CreateDIBitmap with 32bits RGBA dataHmmm... I'd like to have the applications compatible with many Windows versions (including Windows 98 and NT4). It is OK, if things look ugly on the older versions, but the application should run. So, I was drawing using an imagelist with this single bitmap. Maybe the optimization was inside the image list.
-
CreateDIBitmap with 32bits RGBA dataThanks for the answer. I have tried it, but unfortunately, the same "heuristics" applies to CreateDIBSection as well. I ended up using CreateIconFromResourceEx & DrawIconEx combination. Sounds a bit strange for such a "simple" task as displaying a RGBA image data...
-
CreateDIBitmap with 32bits RGBA dataHello all, I seem to have a problem creating bitmaps with alpha with the following code: BITMAPINFO tBMI; ZeroMemory (&tBMI, sizeof tBMI); tBMI.bmiHeader.biSize = sizeof tBMI.bmiHeader; tBMI.bmiHeader.biWidth = nSizeX; tBMI.bmiHeader.biHeight = -nSizeY; tBMI.bmiHeader.biPlanes = 1; tBMI.bmiHeader.biBitCount = 32; tBMI.bmiHeader.biCompression = BI_RGB; HBITMAP hBmp = CreateDIBitmap(hdc, &tBMI.bmiHeader, CBM_INIT, pData, &tBMI, DIB_RGB_COLORS); All works fine under normal circumstances, but if it happens that the data are completely transparent (all pixels have alpha set to 0), the behavior suddenly changes and instead of a completely transparent bitmap, the function chooses to ignore the alpha channel and creates a bitmap filled with black color (presumably because the RGB channels were set to 0 in the original data). Is this some Microsoft hack to maintain compatibility or what? Is there a way to prevent it? Thanks for any hints.
-
ListView, tile mode & multiple lines - how???It seems that I have overlooked the LVM_SETTILEINFO message and thought that LVM_SETTILEVIEWINFO is all that is needed. Thanks for helping me, you have saved me a lot of time!
-
ListView, tile mode & multiple lines - how???Hello all, I'd like to know how to make a Win32 list view control show multiple lines of text beside the icon just like Explorer does: |||| file_name.txt |||| Text document |||| October 10th 2007 I want to be able to control the text on each line and I am having no success, it just wraps a single line of text if it does not fit on one line. No matter what I do - adding columns, putting newlines to the text, setting number of lines with LVM_SETTILEVIEWINFO... nothing helps. So far I have found only .net examples please, which are useless to me. Thanks for any pointers.
-
Context help message loopThanks for the reply, I was hoping somebody already did this. Oh well.
-
Context help message loopHello *, dialog boxes can have a question mark button in their caption that (when clicked) changes cursor and provides help for selected control. I'd like to have the same functionality in the main window of the application, triggered for example by a toolbar button. I guess a specialized message loop is needed to provide all the functionality (changing cursor, sending the WM_HELP, cancelling on ESC, ...) Is this piece of code avaiable or would I need to implement it myself :sigh: ? One more thing - no MFC if possible, just pure Win32. Thanks in advance, Vlasta