Search:

Type: Posts; User: KonArtis

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    1,726

    Blocking functions

    Is there something you can do to unblock a blockked function?

    For example:
    Thread1
    allocate dynamic memory
    blocking function();
    free dynamic memory
    End

    Thread2
  2. Replies
    1
    Views
    8,359

    For anybody that is interested, the Request...

    For anybody that is interested, the Request wouldn't be sent because I had "https://" at the beginning of the URL.

    -Joe
  3. Replies
    1
    Views
    8,359

    Using WinINet with HTTPS

    I'm trying to authenticate with the passport server for an MSN Messenger client (The connection has to be SSL), but the request is never goes through :confused: . Does anybody see what I'm doing...
  4. Replies
    3
    Views
    1,810

    Thanks for the help! :)

    Thanks for the help! :)
  5. Replies
    3
    Views
    1,810

    Common Dialog Boxes

    I know there are functions that make common dialog boxes that let you have "Save", "Open", "Choose Font", "Choose Color", etc. But is there one that allows the user to choose a directory (something...
  6. Replies
    2
    Views
    1,715

    The error in the code has nothing to do with the...

    The error in the code has nothing to do with the WndProc, but the message loop. My GetMessage look liks this:

    GetMessage(&msg, hwnd, 0, 0)
    but when I changed it to:

    GetMessage(&msg, NULL, 0,...
  7. It could be causing the problem. To define the...

    It could be causing the problem.

    To define the deconstructor it ~YourClassName();. If you're going to be using the class in inheritance you should use virtual ~YourClassName(); so that the...
  8. I don't see anything wrong with your code, but...

    I don't see anything wrong with your code, but you are missing a deconstructor.

    You don't need this code here

    tmp->data=el;
    tmp->next=0;

    because you've already initilized it with
    ...
  9. Replies
    2
    Views
    1,715

    ComboBox: text in list not visible

    The combobox is the only child window on the main window. And what happens is to it when I use CBS_DROPDOWN style is the text in list that drops down doesn't show up and it freezes the whole...
  10. Replies
    3
    Views
    1,667

    I have checked if EndDialog() is getting the...

    I have checked if EndDialog() is getting the handle of the main window and it is not. I even tried forcing the handle of the main window in EndDialog() and it didn't do anything

    For the complete...
  11. Replies
    3
    Views
    1,667

    Problem with Dialog Box

    I'm making a DialogBox using DialogBoxIndirect() and when I close the dialog window the entire application closes.

    Is there a reason why EndDialog() would close the entire application? If there is...
  12. Replies
    3
    Views
    1,460

    Thanks bithub! That worked :) Joe

    Thanks bithub! That worked :)

    Joe
  13. Replies
    3
    Views
    1,460

    Problem with Listbox and Subclassing

    The code in red is where I think the problem lies.

    This is how I create the ListBox (I would specifiy "LISTBOX" in the pszType field):

    void cCHILDWINDOW::Create(const char *pszType, HWND hwnd,...
  14. Thread: Buttons

    by KonArtis
    Replies
    3
    Views
    1,025

    Here is one way of making a button: HWND...

    Here is one way of making a button:


    HWND CreateButton(HWND hParent, int cx, int cy, int x, int y, DWORD dwStyle, DWORD dwExStyle)
    {
    return CreateWindowEx(dwExStyle, "BUTTON", NULL, dwStyle |...
  15. Replies
    8
    Views
    3,471

    Theres a problem with how the leap year is...

    Theres a problem with how the leap year is checked.

    This will return 1 if the year is a leap year.


    int LeapYear(int iYear)
    {
    int iReturn=0;

    if ( !(iYear % 4) )
  16. Replies
    1
    Views
    1,156

    HWND CreateProgress(HWND hParent, int cx, int cy,...

    HWND CreateProgress(HWND hParent, int cx, int cy, int x, int y, DWORD dwStyle, DWORD dwExStyle)
    {
    INITCOMMONCONTROLSEX icex;
    icex.dwSize = sizeof(INITCOMMONCONTROLSEX);
    icex.dwICC =...
  17. Replies
    3
    Views
    2,444

    I figured it out...finially :) void...

    I figured it out...finially :)



    void SetItemChecked(HWND hwnd, int index)
    {
    LVITEM lvItem;

    lvItem.stateMask=LVIS_STATEIMAGEMASK;
    lvItem.state=INDEXTOSTATEIMAGEMASK(2);
  18. Replies
    3
    Views
    2,444

    I would use ListView_SetCheck but when I do, the...

    I would use ListView_SetCheck but when I do, the compiler says that it doesn't exist. So I went to commctrl.h so search for it, but it didn't find it. Thats why I wanted another way of setting the...
  19. Replies
    3
    Views
    2,444

    ListView SetCheck

    How do you I set the check mark checked with the SendMessage? I saw on a previous board that there is ListView_SetCheckState, but I searched the <commctrl.h> and it didn't find that macro.

    I got...
  20. Replies
    8
    Views
    2,715

    If I use ListView_SetItemState, I'm not sure what...

    If I use ListView_SetItemState, I'm not sure what to set with the LVITEM object. Can you help?

    Thanks.
  21. Replies
    8
    Views
    2,715

    The error for ListView_SetCheckState is that is...

    The error for ListView_SetCheckState is that is doesn't exist.
  22. Replies
    8
    Views
    2,715

    I tried the ListView_SetCheckState macro but it...

    I tried the ListView_SetCheckState macro but it gives me an error. And for the LVM_SETITEMSTATE message, I'm not sure how to set the check state in the LVITEM struct. Could be a little more detailed?...
  23. Replies
    8
    Views
    2,715

    ListView Control

    I was using ListView_GetCheckState to see if an item is checked, but there isn't a ListView_SetCheckState and I can't seem to find any other message to do it. Do anyone know if there is a message to...
  24. Replies
    1
    Views
    1,207

    If you want to display text on the window, the...

    If you want to display text on the window, the easiest way is with the TextOut() function.


    PAINTSTRUCT ps;
    int x=0, y=0;
    char szBuffer[]="Hello world";
    HDC hdc=BeginPaint(hwnd, &ps);
    ...
  25. Replies
    1
    Views
    2,968

    Help with ListView_InsertItem

    I included <commctrl.h> and linked with comctl32.lib

    The problem is it doesn't add the *pszItem to the listview. All I get is a blank item. I can't find where I'm goning wrong. If you need the...
Results 1 to 25 of 35
Page 1 of 2 1 2