Thank you for your answer. :rose: I read that and if I understand well, I shall begin a CScrollBar child class from scratch... X| I think I will handle it in another way.... :) I actually began in this way : A <--- This a button to scroll up | <--- This a background bmp | [] <--- This a button (the box showing the current position in every scrollbar) | <--- This the same background bmp V <--- This another button to scroll down It's a bit messy but I've already done that for a slider, and that works well, so why not ?... ;) My only problem is to get rid of those f*#@^" srollbars inside the CListCtrl (disabling them by checking the 'No scroll' check box won't help : I won't be able to send some WM_VSCROLL to the CListCtrl...) :( If anyone has any idea... :)
GUEJO
Posts
-
Changing the color of scroll bars -
Changing the color of scroll barsHello every one ! I'd like to use a CListCtrl in my application, but the way it is displayed is not useful for me because it should be blue instead of gray. X| I looked in previous posts but I haven't found what I'm looking for : getting the scrollbars from the CListCtrl with the function GetScrollBarCtrl(...) is almost impossible, according to me...:confused: If someone has tried to do something approaching, please answer me because I don't know where I should look... :(( Thank you in advance :) Joe
-
Displaying 2 BMPs at the same positionHere a little quotation of MSDN doc about CWnd::SetWindowPos, the function I'm using (here you've got the description of the first parameter) pWndInsertAfter Identifies the CWnd object that will precede this CWnd object in the Z-order. This parameter can be a pointer to a CWnd or a Pointer to one of the following values:
-
wndBottom Places the window at the bottom of the Z-order. If this CWnd is a topmost window, the window loses its topmost status; the system places the window at the bottom of all other windows.
-
wndTop Places the window at the top of the Z-order.
-
wndTopMost Places the window above all nontopmost windows. The window maintains its topmost position even when it is deactivated.
-
wndNoTopMost Repositions the window to the top of all nontopmost windows (that is, behind all topmost windows). This flag has no effect if the window is already a nontopmost window.
As you can see I'm actually using the predefined variable. I tried with other variable such as the Picture controls that should be under others : It works well (for example I used : upper.SetWindowPos(lower,...) where upper and lower are 2 Picture controls). But what is wrong is when I use this class : CxSkinButton. This class is a marvelous Button which can have any shape and any bitmap over. It reacts to the mouse over event and change bitmap when it occurs. So what's interesting here, is that the buttons are hidden behind a bitmap that should normally be shown behind them at the beginning. And when I go over where they should appear with the mouse, then they appear with the 'MouseOver' bitmap. After I leave the sensitive zone, the button remains visible with proper bitmap and is working as it should work. So, actually my problem is that when I start the application, I must move the mouse over each button so that it can appear => :(( I hope I've explain not so bad because it's a bit confusing... Thank you in advance. Joel .:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:..:.:.:.:.:.:.:.:..:.:.:.:.:.:.:.:.:. Should computing stay as a source of benefit or become like knowledge : free and opened to every one ?... ;) ':':':':':':':':':':':':':':':':':':':':':':':':':':':':':':':':':':':':':':':':':':'
-
-
Displaying 2 BMPs at the same positionActually I've done a lot of combinations : first.SetWindowPos(&wndTop,...); second.SetWindowPos(&wndTop,...); or with the SWP_NOZORDER flagat the end I also tried to initialise in a different way which is first set the second then the first and it was the same result. I finally tried to change the tab order and it worked !!! But what I'm trying is to do the same with the CxSkinButton furnished here, on this site and it does not work as well as I wanted (By the way it is a great code) sorry I do not have time to explain more in details, I will continue tomorrow... .:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:..:.:.:.:.:.:.:.:..:.:. Should computing stay as a source of benefit or become like knowledge : free and opened to every one ?... ;)
-
Greetings...Of course I wanted to say available space not free space, sorry... (I meant real size after format) But I thought it depended on the OS because the total size of my hard drive was bigger(about 1 gig difference for a 40 gigs one, if I remember well) with Linux on it than with WinXP (or Win98). And I remember that filesystems don't need the same amount of data to work. So that's why I was quite disapointed when I saw how the manufacturers took profits of our trust... :( If I'm wrong somewhere, please explain me so I won't post stupid thread again... ;) .:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:..:.:.:.:.:.:.:.:..:.:. Should computing stay as a source of benefit or become like knowledge : free and opened to every one ?... ;)
-
Greetings...I think that they don't do this mistake. Actually if you install another OS on your drive you'll probably see that you have more (or sometimes less :(( ) free space. That's because any filesystem needs information to work and stores it a part of the hard drive, making it invisible and unusable for the user... (and windows one is very hungry... X| ) .:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:..:.:.:.:.:.:.:.:..:.:. Should computing stay as a source of benefit or become like knowledge : free and opened to every one ?... ;)
-
Displaying 2 BMPs at the same positionHello I'm kinda newbie in C++ and I'd like to display 2 bitmaps at the same position, or clearlier, one above another. I loaded the bitmaps in the resources (I'm using VC++ 6.0) and I then had their IDs.:( I added a picture control and used the classwizard to get a CStatic variable associated to the picture control (it's actually a CStatic one):| Now I try to display these bitmaps in function of the resolution so I must use SetWindowPos to set properly the size, the position and the Z-order (the depth). The problem comes from the fact that however I try, it's always the wrong BMP that is over the other, hiding it.:confused: If anyone could help me, it would be very nice :rose:
-
Button with Bitmap ImageI used a class very very useful : CxSkinButton If you want to have button of every shape and bitmap, try this link and I think you'll be surprised...;) http://www.codeproject.com/buttonctrl/CxSkinButton.asp Maybe you could tell me something too ?... Actually I'm trying to display more than one bmp at the same location but it doesn't work properly... I use the SetWindowPos function to place the bitmap and stretch it (or shrink it) to the correct size. It works well for the position and the size but not for the Z-Order (the first is over the second and I want the contrary). Setting the first parameter of the SetWindowPos to '&wndTop' does not change anything. If you could help me... Should computing stay as a source of benefit or become like knowledge : free and opened to every one ?...