|
|
Up |
|
|
  |
Author: Ramon F HerreraRamon 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 |
|
  |
Author: larryl_turbolarryl_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 |
|
  |
Author: Ramon F HerreraRamon 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 |
|
  |
Author: Alexander SmirnovAlexander 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 |
|
  |
Author: BeagleBeagle
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 |
|
  |
Author: Vaibhav GadeVaibhav 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 |
|
  |
Author: Bruno DuarteBruno 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 |
|
  |
Author: Norman BullenNorman Bullen
Date: May 16, 2008 17:37
> 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
|
|
  |
Author: Christian ASTORChristian ASTOR
Date: May 16, 2008 07:44
> 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
|
|
  |
|
|
  |
Author: k.bramhillk.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
|
|
|
|
|
|
|