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

    How to Add an Icon to a CButton

    Hello all, I was wondering if anyone knew of a way to add an Icon/Bitmap to a Cbutton? I have already included the icon into my project as a resource: IDI_CHECKMARK. I need to find a way to load this into the Button control m_SaveBtn. I know that I can use the member func: SetIcon() which...
  2. sparafucile17

    Using Multiple Views

    I have a MDI that I would like to use with multiple views. For the most part the views will be CFormViews. What I'd like my app to do is to load a different view for each menu item. In my app, I have a Menu titled "Membership". Under this menu I have two items: Add New, View All...
  3. sparafucile17

    Child Dialogs in MDI AFC Application

    Does anyone know a quick and easy way to make a dialog into a child of a MDI? I tried changing the dialog properties to WS_CHILD but it crashes the program whenever the dialog is launched via domodal(). The application I am designing uses the menu bar to launch several dialogs that need to...
  4. sparafucile17

    How to add a JPEG to JPanel

    Can anyone give me a quick couple lines of code for adding a JPEG image to JPanel? I need to put a comany logo in my JPanel, but can't find any definitive way to do it. I got as far as creating a Toolkit and opening and Image from it. But now how to I place it on the panel? Currently the...
  5. sparafucile17

    JPanel update/redraw

    Ok, I have a class that extends a JPanel, that is pretty much my primary GUI interface. I have a JFrame that adds this inherited JPanel and uses it as the GUI display. The problem is that I have a JLabel: connStatus in the JPanel that needs to be updated depending on the remote connection...
  6. sparafucile17

    General Try-Catch question

    Ok, here's the deal: I want to try to open a database but want to know if the connection was successful or not. But the only way I know that it wasn't successful is that a sql exception is fired. So I was thinking that I could use a bool to keep track of connection status like so: boolean...
  7. sparafucile17

    How to sort an array of Strings

    Does anyone know how to sort an Array of String without writing my own custom sorting method? I know in C++ that I could call the quicksort function and pass it my array an voila! it returned my array sorted. I tried looking it up on the sun site and I found something about the class...
  8. sparafucile17

    How to create a JAR file

    Can anyone explain how to create a Java Archive(JAR)? I'd like to create one, so that the user one has to click on one file to run an application. I got pieces of help from the sun developer site, but not everything. Here is what I found: ----------------------- The good news is that the Java...
  9. sparafucile17

    Converting a time string into a CTime class

    Ok here's the problem..... I have a string(in char* format) representation of time that looks like this: "%Y%m%d%H:%M:%S". An example on the time right now would look like: "2003021611:50:32". But the problem is that I need it in a CTime format. I'll be using the...
  10. sparafucile17

    How many Twips are there in a Pixel?

    Does anyone know how to calculate the number of twips per pixel? I am trying to determine how many lines of text will fit into my Rich Edit box. I can physically count that there are 23 lines at *MY* default windows font, but what I want to do is to figure out how to calculate this. So this...
  11. sparafucile17

    Rich Edit Box scrolls past the last line of text.

    Does anyone know why a Rich Edit box would scroll past the last line of text? What's happening in my program is that if the user clicks on the 'down arrow' of the vertical scroll bar, the Rich Edit box will scroll down past the last line of text until the last line of text is on the very top of...
  12. sparafucile17

    SetWindowText has a 32KB limit?

    I am using setWindowText to add text to an Edit box, and everything's just peachy. That is until I really start to fill it up with a lot of text. I am using the edit box for a log, so I am going to always have a lot of data in it. On average I think I will fill it to about 45KB. The problem...
  13. sparafucile17

    Change the Background color on Edit Box.

    Does anyone know how to set the Background color of an edit box? I am trying to create a read only edit box called IDC_LOG but I don't like the read only default color. I have seen other thread that talk about some function called: LRESULT CALLBACK DialogProc(HWND hDlg, UINT message, WPARAM...

Part and Inventory Search

Back
Top