Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 307299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T07:32:45+00:00 2026-05-12T07:32:45+00:00

I have this dialog: ID__BATERIA __FAX DIALOGEX 0, 0, 235, 86 STYLE DS_SETFONT |

  • 0

I have this dialog:

ID__BATERIA __FAX DIALOGEX 0, 0, 235, 86

STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU

CAPTION "Nueva batería de fax" FONT 8, "MS Shell Dlg", 400, 0, 0x1

BEGIN

DEFPUSHBUTTON   "OK",IDOK,120,65,50,14
PUSHBUTTON      "Cancel",IDCANCEL,175,65,50,14
LTEXT           "Archivo",IDC_STATIC,20,12,25,8
LTEXT           "Descripción",IDC_STATIC,20,40,37,8
EDITTEXT        IDC_DESCBATER,65,38,120,13,ES_AUTOHSCROLL 
COMBOBOX        IDC_ARCH2,65,10,120,60,CBS_DROPDOWN | CBS_AUTOHSCROLL | CBS_SORT | WS_VSCROLL | WS_TABSTOP 

END

I want the combobox to be a file selector. So I wrote this:

BOOL CALLBACK BateriaFaxDlg(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam){

char descripcion[100];
char archivo[20];

switch (msg)                  /* manipulador del mensaje */
{
    case WM_INITDIALOG:
        SendMessage(GetDlgItem(hDlg, IDC_ARCH2), CB_DIR, DDL_READWRITE | DDL_DIRECTORY, (LPARAM)"*");       
        return TRUE;
    case WM_COMMAND:
        switch (LOWORD(wParam)) {
        case IDOK:
            SendDlgItemMessage(hDlg, IDC_ARCH2, WM_GETTEXT, 20, (LPARAM)archivo);
            GetDlgItemText(hDlg, IDC_DESCBATER, descripcion , 100);
            actualizarBaterias("FAX", archivo, descripcion);
            EndDialog(hDlg, FALSE);
            break;
        case IDCANCEL:
            EndDialog(hDlg, FALSE);
            break;
        case IDC_ARCH2:             
            switch(HIWORD(wParam)) {
        case CBN_DBLCLK:
                   if(DlgDirSelectEx(hDlg, archivo, 512, IDC_ARCH2)) {                        
                      // DlgDirList(hDlg, "*", IDC_ARCH2, ID_TITULO, DDL_DIRECTORY | DDL_DRIVES);   
                       SendMessage(GetDlgItem(hDlg, IDC_ARCH2), CB_DIR, 0, (LPARAM)"*");
                    // IniciarLista(hwnd, cad);
                  } 
                break;
            }
            break;
        default:
            break;           
       return TRUE;
        }
}
return FALSE;

}

It shows correctly the files and the directorys, but when I try to enter a directory it won’t work. The thing I select is [dir] instead going inside and showing the files.

Can anyone help me?

Thanks a lot.

UPDATE:

Ok, I changed it and now it is a Simple ComboBox. Still when I double click on the directories it won’t enter and list the files inside. Any ideas?

UPDATE:

It finally works.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T07:32:46+00:00Added an answer on May 12, 2026 at 7:32 am

    From http://msdn.microsoft.com/en-us/library/bb775808.aspx

    “This notification message occurs only for a combo box with the CBS_SIMPLE style. In a combo box with the CBS_DROPDOWN or CBS_DROPDOWNLIST style, a double-click cannot occur because a single click closes the list box.”

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When the user presses the X in the Main Window, I have this dialog
I have this User Control XAML: <Window x:Class=MyProj.Dialog xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml xmlns:mc=http://schemas.openxmlformats.org/markup-compatibility/2006 xmlns:d=http://schemas.microsoft.com/expression/blend/2008 xmlns:shell=http://schemas.microsoft.com/winfx/2006/xaml/presentation/shell mc:Ignorable=d>
I have this situation: http://jsfiddle.net/bRDgK/3/ In this situation I have a modal dialog with
I have this link which i need to translate in a php variable. http://www.facebook.com/dialog/apprequests?app_id=346824075388300&to=1149862205&message=Facebook+Dialogs+are+so+easy%21&redirect_uri=http%3A%2F%2Fpenelope-ns.net%2Ffb%2F
I have fragment that on a component click pop-ups DialogFragment. This dialog fragment holds
I have click events set up like this: $('.dialogLink') .click(function () { dialog(this); return
Well i have a div tag that i show as a modal dialog this
I have a dialog with this content: <RelativeLayout android:layout_width=wrap_content android:layout_height=wrap_content > <ScrollView android:layout_width=fill_parent android:layout_height=wrap_content
I have dialog created like this $('#add_error').click(function(e) { $('<div>') .load('/someaction/format/html/') .dialog({ title: 'Some title',
I have a open file dialog with three filters: QString fileName = QFileDialog::getOpenFileName( this,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.