Skip to content

Instantly share code, notes, and snippets.

@maul-esel
Created October 24, 2011 17:01
Show Gist options
  • Save maul-esel/1309518 to your computer and use it in GitHub Desktop.
Save maul-esel/1309518 to your computer and use it in GitHub Desktop.
RichContent Examples
<!DOCTYPE html>
<html>
<head>
<title>test</title>
<style type='text/css'>
td {
padding: 10px
}
pre.Syntax {
background-color: #FFFFAA;
padding: 5px;
border: solid #FFEE00 1px
}
pre.Syntax em {
color: green
}
pre.Syntax span.String {
color: blue;
font-style: italic
}
pre.Syntax span.String:before {
content: '\''
}
pre.Syntax span.String:after {
content: '\''
}
pre.Example {
background-color: #DEDEDE;
padding: 5px;
border: solid gray 1px
}
pre.Example em {
color: green
}
pre.Example span.String {
color: darkblue;
font-style: italic
}
pre.Example span.String:before {
content: '\''
}
pre.Example span.String:after {
content: '\''
}
</style>
</head>
<body>
<ul style='list-style-type: none'><!-- list of all members -->
<li><!-- created for each member -->
<div style='border: solid gray 2px; width: 75%; padding: 5px'>
<h3>ITaskbarList_SetThumbnailClip()</h3>
<hr/>
<pre class='Syntax'>ITaskbarList_SetThumbnailClip(x = 0, y = 0, w = <span class='String'>~</span>, h = <span class='String'>~</span>) <em>; short version</em><br/>ITaskbarList_SetThumbnailClip(hGui, x = 0, y = 0, w = <span class='String'>~</span>, h = <span class='String'>~</span>)</pre>
<h4 style='padding: 3px; background-color: lightgray; border: solid gray 1px'>Parameters:</h4>
<table border='1' style='border-collapse: collapse; margin: 5px' frame='void'>
<tbody>
<tr>
<td>hGui</td>
<td>This parameter is the window handle of the window to use. If this is ommited (the short version is used), the last found window will be used.</td>
</tr>
<tr>
<td>x</td>
<td>
the x-coordinate to use for the upper-left corner of the rectangle. If ommited, a value of 0 will be used.
</td>
</tr>
<tr>
<td>y</td>
<td>
the y-coordinate to use for the upper-left corner of the rectangle. If ommited, a value of 0 will be used.
</td>
</tr>
<tr>
<td>w</td>
<td>
the width of the rectangle to use. If ommited, the window's width will be used.
</td>
</tr>
<tr>
<td>h</td>
<td>
the height of the rectangle to use. If ommited, the window's height will be used.
</td>
</tr>
</tbody>
</table>
<h4 style='padding: 3px; background-color: lightgray; border: solid gray 1px'>Example:</h4>
<pre class='Example'>ITaskbarList_SetThumbnailClip(100, 100, 400, 300)<br/>sleep 10000 <em>; wait some time</em><br/>ITaskbarList_SetThumbnailClip()</pre>
</div>
</li>
</ul>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment