Current location: Hot Scripts Forums » Programming Languages » Windows .NET Programming » [2005] StartPosition for CommonDialogs?


[2005] StartPosition for CommonDialogs?

Reply
  #11 (permalink)  
Old 01-08-09, 03:39 AM
mk456's Avatar
mk456 mk456 is offline
Newbie Coder
 
Join Date: Jan 2009
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Here I have solution of this problem:
Code:
The EnumChildProc() function does this:
{
   int id = ::GetDlgCtrlID(hWnd);
   switch(id)
   {
      case LOOK_IN_COMBO : // Combo box on top of the dialog

         ::EnableWindow(hWnd, FALSE);
         break;
   }

   return TRUE;
}
The main reason we have this hook is that we cannot subclass the controls on the dialog straight away, since some of the controls, such as the list view control and toolbar do not even exist in the common dialog template, which is present in the VC++ include directory.
Try this I hope you get good result!

Last edited by Nico; 01-08-09 at 03:47 AM. Reason: Wrappers, and removed advertising link.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] [2005] How to combine PictureBox's Image and BackColor? tim8w Windows .NET Programming 1 04-25-08 04:26 PM
[SOLVED] [2005] ComboBox: Relation between ItemHeight and MaxDropDownItems? tim8w Windows .NET Programming 3 04-23-08 12:56 AM
[SOLVED] [2005] ToolStripComboBox with Font Styles? tim8w Windows .NET Programming 1 04-21-08 11:10 AM
[SOLVED] [2005] VB6-like AutoRefesh for PictureBox control? tim8w Windows .NET Programming 1 04-16-08 05:21 PM
[SOLVED] [2005] CustomButtonControl - Defaults declared in New overriding values tim8w Windows .NET Programming 1 02-25-08 01:12 PM


All times are GMT -5. The time now is 02:17 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.