How to add scrolling to a property page in ATL and WTL

Sometimes you may get into situation when you cannot put all the required controls into property page of fixed size (for example there are several property pages in a sheet and you cannot expand one so that other look ugly with new empty space).

Adding scrollbar that scrolls the controls might be a good solution for the problem. With CScrollablePropertyPageT template based on WTL’s CPropertyPageImpl it’s even easier.

image001.png

Read more »


Posted on : Nov 30 2006
Posted under ATL, Source, WTL |

Replace in Clipboard: a regular expression based text replacement utility

Replace in Clipboard is an application which monitors clipboard usage and test strings copied into clipboard against predefined patterns. In case the clipboard string matches the pattern, a replacement is offered via system tray icon tool tip. User may accept replacement by clicking the tip, or reject it by ignoring the tip.

For example, “C:\Inetpub\wwwroot\MyDirectory\Sample.jpg” string is put into clipboard and the utility would suggest a replacement to “http://localhost/MyDirectory/Sample.jpg“:

image003.png

The patterns are defined in accompanying .ini file (should reside in the same directory as the utility application) and are flexible to configure:

  • regular expressions are based on ATL syntax
  • Ignore Case” and “Global Match” options are supported
  • patterns may defined to be recursive

Below is an example of configuration file with comments:

[http] // pattern identifier “http”
required=global // required identifiers to activate pattern; “global” means top level pattern
recourse=dash-to-slash-needed // patterns to apply recoursively on replaced text
find=^C\:\\Inetpub\\wwwroot\\{.+}$ // find pattern
replace=http://localhost/\1
// replace pattern, \1 stands for text inside first {…} brackets in find pattern
ignorecase=1 // ignore case or not
globalmatch=0 // global match means stop at first occurrence
;multiline=0 // multiline is not supported yet

[dash-to-slash] //
required=dash-to-slash-needed // this pattern is only applied on [http] replaced substrings
recourse=
find=\\
replace=/
ignorecase=1
globalmatch=1
;multiline=0

The application does not required installation/uninstallation.

Application Name: Alax.Info Replace in Clipboard
Latest Version: 1.0.0
Download Link: Replace in Clipboard 1.0.0.58


Posted on : Nov 28 2006
Posted under ATL, Utilities |

How to choose a name for a server?

It may appear to be funny, but it’s an RFC, RFC 1178 actually:

In order to easily distinguish between multiple computers, we give them names. Experience has taught us that it is as easy to choose bad names as it is to choose good ones. This essay presents guidelines for deciding what makes a name good or bad.


Posted on : Nov 23 2006
Posted under Technology |

Stephen Lynch rocks: If I were a gay

Stephen Lynch, If I were a gay, youtube:


Posted on : Nov 11 2006
Posted under Off-topic |

Britain is becoming ‘Big Brother’ society

http://news.yahoo.com/s/afp/20061102/tc_afp/britainsecuritycctv_061102140345

Britain is becoming a “surveillance society”, where CCTV cameras, credit card analysis and travel movements are used to track people’s lives minute by minute. [...] The nation has up to 4.2 million CCTV (closed-circuit television) cameras, or about one for every 14 people.


Posted on : Nov 05 2006
Posted under Seriously, Video |