Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. richsb

    Changed Cursor not displaying

    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!!!
  2. richsb

    Changed Cursor not displaying

    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...
  3. richsb

    Changed Cursor not displaying

    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...
  4. richsb

    Overlaying an image on a bitmap in a dialog

    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 !
  5. richsb

    Overlaying an image on a bitmap in a dialog

    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...
  6. richsb

    Overlaying an image on a bitmap in a dialog

    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...
  7. richsb

    Bitmap not loading into Picture control from a resource only DLL

    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...
  8. richsb

    Getting a blank for a LoadString from a resource only dll

    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...
  9. richsb

    Getting a blank for a LoadString from a resource only dll

    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...
  10. richsb

    bitmaps & Imagelist - file or embedded

    Thanks LazyMe, that's gave me a whole new outlook on life...... well at least as far as my coding goes! Rich [bigglasses]
  11. richsb

    bitmaps & Imagelist - file or embedded

    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...
  12. richsb

    Color Gradient For Web Page Backgound

    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...
  13. richsb

    Changing default color for all control buttons on a dialog

    rdg2cig Did you get this one sorted out? Would like to know as the article that Palbano points too is no longer available. Cheers
  14. richsb

    CComboBox & GetCurSel();

    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...
  15. richsb

    CComboBox & GetCurSel();

    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...
  16. richsb

    CComboBox & GetCurSel();

    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
  17. richsb

    CComboBox & GetCurSel();

    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...
  18. richsb

    LoadFromResource - HTML view

    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...
  19. richsb

    LoadFromResource - HTML view

    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...
  20. richsb

    CDialogBar create()

    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...

Part and Inventory Search

Back
Top