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...
Hi,
As per my previous post I am having trouble with loading resources from a dll. This time it is a Bitmap that I want to grab and place in a picture box
Here's the code - guidance much appreciated.
As you can see I am simply taking the name of a resource only dll, saving the dll name as a...
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
I have created a resource only dll. When I call a string resource from it the messagebox comes up blank. Here's the code. I am not sure whether it is the typecast from char to CString that I have used. Any ideas appreciated.
void CDllImageDlg::OnOpenFile()
{
CFileDialog dlg(
true...
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
Hi,
In my HTMLView based app, there is a DialogBar resource template upon which there is a ComboBox control placed on it. In this Combo control exists defined choices. As you may know, no directly assigned variables are able to be created and assigned to the controls as happens in a normal...
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.