comp.os.mswindows.programmer.win32
  Home FAQ Contact Sign in
comp.os.mswindows.programmer.win32 only
 
Advanced search
May 2008
motuwethfrsasuw
   1234 18
567891011 19
12131415161718 20
19202122232425 21
262728293031  22
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007    
total
comp.os ... win32 Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  How to see the contents of a library?         


Author: Ramon F Herrera
Date: May 18, 2008 20:20

Unix has a handy utility to list the contents of a static library
file:

%% ar t somelibrary.lib

How would I accomplish the above on Windows?

TIA,

-RFH
2 Comments
  VS 2008 - Defining Dialog Class Names with Resource Editor         


Author: larryl_turbo
Date: May 18, 2008 16:04

Hi Folks:

Developing on XP Home, VS 2008 Pro, C++, WIN32, no MFC.

I'm stuck on a weird problem, and I'm trying ot put together a
simple
example so I can run some tests and perhaps post it here if I can't
figure it out.

The application uses the Resource Editor to layout the opening
dialog.

I've done this many times before, and I know I need to define a
dialog with a class name.

So I fire up the resource editor and lay out a simple dialog.
Nothing fancy, dialog frame, popup. Almost everything in the list of
dialog properties is false, except System Menu and Title Bar

Now I want to define a class name, but the Class Name title is
grayed out, and text typed in is ignored.

How do I define a class name for this dialog?

Thanks
Larry
4 Comments
  What is the meaning of a dimmed folder in MSVS?         


Author: Ramon F Herrera
Date: May 18, 2008 12:32

I have been programming with MS Visual Studio for some time now.
However, this is something that I have never seen:

http://patriot.net/~ramon/DimmedFolders.png

I have always said that there should be a law in computer science, one
that they must teach in all schools.

"Every time there is a dimmed item, hovering the mouse above it
should produce a legend explaining the reason for the item being
dimmed".

That would be a much better use of the facility than the stupidly
obvious legends that programmers place nowadays.

-RFH
3 Comments
  How to get the LAST visible line index of RichEdit?         


Author: Alexander Smirnov
Date: May 18, 2008 08:26

Hi
There is a message (EM_GETFIRSTVISIBLELINE) to get the first visible
line index of a richedit control but there is no such a message for
the last visible line.
How can I get last visible line index using WinAPI? I need it to know
if the last visible line is the last line of the whole text containing
in the RichEdit.

Thanks in advance.
---

Alexander Smirnov
2 Comments
  setting wireframe window drag, resize, & move         


Author: Beagle
Date: May 17, 2008 18:36

Is it possible to style a window's drag, and resize effect to wire
frame only even if the rest of the desktop is set to show window
contents while dragging? The feature of window transparency, triggered
by WM_PAINT, message trapping works when the Display -> Appearance ->
Effects -> "Show window contents while dragging" is unchecked (e.g.
set to wire frame), but otherwise does not work.

Thanks
2 Comments
  Using CPropertySheet         


Author: Vaibhav Gade
Date: May 16, 2008 21:40

I want to create a property sheet without having any property pages.Is
it possible?.

Right now i m creating property sheet by adding 1 page.I want to hide
the property sheet window after creating it. How can i achieve it?
1 Comment
  get window's titles         


Author: Bruno Duarte
Date: May 16, 2008 20:25

hello! i am from brasil!
I want capture title from all windows in the taskbar.
please post complete code in c or c++.

thankyou!!!!!!!!!
1 Comment
  Re: Getting key input to edit/combo controls on custom dialog.         


Author: Norman Bullen
Date: May 16, 2008 17:37

k.bramhill@googlemail.com wrote:
> I have a blank custom dialog I'm using to add other child controls to.
> I've jumped through the hoops to get things like tab to work, I pass
> things to IsDialogMessage() and my dialog is fine with buttons, drop
> down selection and so on.
>
> What does not work is text entry, (e.g. like "ABC"), to edit controls
> and combo boxes.
>
> I have forced the focus on an edit or combo box by trapping a left
> click on it and then setting the focus to it. When this happens I can
> move left/right in the text and I can delete it. I can not get it to
> take new character though!
>
> I have tried picking up the WM_GETDLGCODE message. This is being send
> to my dialog procedure. The return value of a dialog procedure is a
> BOOL so how can I return the values that are indicated in the MS
> documentation like DLGC_WANTALLKEYS (which has a value of 4)?
>
> I have tried reposting the message to my main windows handler and ...
Show full article (1.57Kb)
no comments
  Re: Getting key input to edit/combo controls on custom dialog.         


Author: Christian ASTOR
Date: May 16, 2008 07:44

On 16 mai, 14:02, k.bramh...@googlemail.com wrote:
> I have tried picking up the WM_GETDLGCODE message. This is being send
> to my dialog procedure. The return value of a dialog procedure is a
> BOOL so how can I return the values that are indicated in the MS
> documentation like DLGC_WANTALLKEYS (which has a value of 4)?
>

WM_GETDLGCODE is handled by subclassing controls.
But I don't understand when you say "What does not work is text
entry..."
Nothing is needed to enter text into Edit controls (fortunately..)
no comments
  Re: Getting key input to edit/combo controls on custom dialog.         


Author: k.bramhill
Date: May 16, 2008 07:13

Partly solved, the following bit works for an editable combo control
so I can now enter text to it:-
I found that by trapping the WM_LBUTTONDOWN to set the focus I could
then test not only the msg.hwnd to see if it was one of my controls
but, if that failed, test the result of ::GetParent(msg.hwnd) and if
that fails ::GetParent(::GetParent(msg.hwnd)) to look for a recognised
hwnd and then pass the recognised hwnd to IsDialogMessage() as normal.

The above solution does not work for the standard "edit" class of
control that I create with something like this:
Show full article (1.28Kb)
no comments
 
1 2 3