Got it sorted,
It was as simple as using the cursor ID number rather than the cursor name as follows, more importantly using the hash sign as well (#).
LPCTSTR myCursor = "#151"
If it is not broke, don't fix it!!!
It turns out that the hCursor is unused with the following messege in debug:-
hCursor : 0x00000000
unused
CXX0030 : Error : expression cannot be evaluated
I guess there is more handling of the resource handle to be done, such as using FindResource();
Any suggestions?
If it is not broke...
Hi,
I have a Dialog app that has WM_ONMOUSEMOVE message map function created from which I catch a certain area of the window. When the cursor is over this area I wish to change to default arrow cursor with one of my own.
The problem that I have is that the code below compiles and runs, but...
That works fine, thanks.
Now, I take it, to overlay that base image with another to indicate my position all I need to do is call another function with a similar style and use the OnPaint function again ?
So much to do, so much to learn !
Hi Buzznik,
I have used the bitmap control for the base image as I wish to update the control with different bitmaps via dll's, so this is a method that I know and am comfortable with. Would this still be able to happen with the method that you have suggested?
Cheers
richsb
So much to do, so...
Hi,
Would appreciate guidance on the following.
I have a dialog onto which I have a picture control with a bitmap loaded into it that will display an image of a portion of the earth - ie a map in other words.
I would like to be able to display a smaller image over that map to represent...
Rick,
Thanks, you spotted my errors in the code that I found myself last night.
Yes, the m_NewDatFile is without the quotes, and the real error was the UINT uID which should have been 1. So really it was working all along.
As for the 100 characters I just threw that in to make sure there was...
Hi,
My application involves a user wanting to view a set of images, one at a time, depending on which image was selected via a mouse click. Would it be best to embed the images in the exe file or do I enable them to be loaded from a data file? There will be a number of different sets of...
Hey Fellas,
Just came here after seeing a nice background which was a gradient and wanted to work out how the coder had done it.
Really pleased to see that this solution followed the simple background gif of 1 pixel wide by x long mentioned above, rather than muck around with css or script...
Pete,
Further to your comments above, could you expand on whats below:-
"Now that will work assuming you have subclassed the control correctly. The subclassing is easily handled using the class wizard in VC6"
Could you enlighten me as to this process of subclassing using the CW...
Hey Pete, thanks for replying.
some further thoughts!
The code :-
CComboBox* pCBox = (CComboBox*)m_ComboBox.GetCurSel();
was my last attempt to try to extracate something from the programme before I went mad and before I resorted to posting here. I got the initial concept from the CTLBARS...
Further to the above, I have been using the wizard created message CBN_ONSELCHANGE which creates my function as :-
void CTestHTMLView::OnSelchangeComboNav()
It is within this that I am trying to get the index of the selected data. This function does work.
Cheers
...the selected data as an int. But the only way I am led to believe to get access to the combobox index is via something like this:-
CComboBox* pCBox = (CComboBox*)m_ComboBox.GetCurSel();
//where m_ComboBox is a ComboBox type variable
This compiles okay, but gives an assert failure, and...
For the use of others, I have been able to sort this one.
What it was, was that as my control dialogbar was assigned to the MainFrame classI had put my button bn_clicked functions in that class as well. Obviously this class has nothing much to do with updating the view. I then just spotted...
Hi,
I have a HTMLview SDI with a couple of CDialogBars inserted. On the Bars, I have a couple of buttons which increases the count of an index int when clicked. On that action I want to be able to load a html document in the main window. I have been trying to get this done with the...
It's the name of the Dialog resource that you would have created to implement in your programme. Use the ID name in as the final UINT nID as well.
The dialog template ID is the IDD_dialog_name for the dialog bar itself.
The control ID is the IDC_control_name of say a button or combobox that...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.